From: padiolea@irisa.fr
To: "Wolfgang Müller" <Wolfgang.Mueller2@uni-bayreuth.de>
Cc: "caml-list" <caml-list@inria.fr>
Subject: Re: [Caml-list] Print values like the toplevel's printer
Date: Fri, 5 Nov 2004 14:31:25 +0100 (CET) [thread overview]
Message-ID: <1065.80.8.0.152.1099661485.squirrel@80.8.0.152> (raw)
In-Reply-To: <200411051323.13339.wolfgang.mueller2@uni-bayreuth.de>
> Hi,
>
> I would like to print values to a file in a human-readable manner without
> having to compose the output writers of print_int and friends. In short, I
> would like to use the toplevel's function for screen output of structured
> values.
I recently post a message to allow this (with generic print in the subject
of the message).
the code is available at:
http://www.irisa.fr/prive/padiolea/hacks/generic_print.ml
example:
let _ = print_string (generic_print [[1;3];[2;9;8];[3;4]] "int list
list" in
let _ = print_string (generic_print [1;3;2;9;8;3;4] "int list") in
...
test:
./test_generic
==>
[[1; 3]; [2; 9; 8]; [3; 4]]
[1; 3; 2; 9; 8; 3; 4]
>
> Is there a simple way, a FM or a mailing list you can point me to?
>
> I googled quite a bit, but apparently not with the right terms.
>
> Cheers,
> Wolfgang
> --
> Dr. Wolfgang Müller
> LS AI 1
> Universität Bayreuth
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
next prev parent reply other threads:[~2004-11-05 13:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-05 12:23 Wolfgang Müller
2004-11-05 13:31 ` padiolea [this message]
2004-11-05 13:54 ` [Caml-list] " Wolfgang Müller
2004-11-05 15:51 ` pad
2004-11-05 18:07 ` [Too hard?] Print values like the toplevel's printerI Wolfgang Müller
2004-11-05 18:28 ` [Caml-list] " pad
2004-11-05 18:54 ` Martin Jambon
2004-11-05 19:26 ` Frédéric Gava
2004-11-05 20:01 ` [Caml-list] [Too hard?] Print values like the toplevel's printer Wolfgang Müller
2004-11-06 11:15 ` [Caml-list] " Jim
2004-11-08 23:44 ` brogoff
2004-11-09 8:48 ` Daniel Bünzli
2004-11-05 22:12 Clément Capel
2004-11-05 23:15 Clément Capel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1065.80.8.0.152.1099661485.squirrel@80.8.0.152 \
--to=padiolea@irisa.fr \
--cc=Wolfgang.Mueller2@uni-bayreuth.de \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox