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
_______________________________________________
polyml mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to