That works perfectly for what I need...thanks David
On Sun, Mar 6, 2016 at 4:00 AM, <polyml-request at inf.ed.ac.uk> wrote:
Send polyml mailing list submissions to polyml at inf.ed.ac.uk
To subscribe or unsubscribe via the World Wide Web, visit http://lists.inf.ed.ac.uk/mailman/listinfo/polyml or, via email, send a message with subject or body 'help' to polyml-request at inf.ed.ac.uk
You can reach the person managing the list at polyml-owner at inf.ed.ac.uk
When replying, please edit your Subject line so it is more specific than "Re: Contents of polyml digest..."
Today's Topics:
- Echo code as well as output (David Topham)
- Re: Echo code as well as output (David Matthews)
Message: 1 Date: Sat, 5 Mar 2016 09:16:05 -0800 From: David Topham <dtopham at ohlone.edu> To: polyml at inf.ed.ac.uk Subject: [polyml] Echo code as well as output Message-ID: <CAD034BEm3Yxrgx1OeZTz-r_sQkowpw51YY8-= ni7-qaOiTCBQQ at mail.gmail.com> Content-Type: text/plain; charset="utf-8"
I am looking for a way to display the code as well as the output when running SML.
I believe it might be called "trace" or "log"... I did find this suggestion online:
PolyML.startLog
but that seems to be deprecated?
Is there another option?
e.g.
fun f x = x * x; f 4; just displays val it = 16: int
and I would like something like:
f 4 = 16 or similar to see what code was evaluated to get the 16