Is it possible to declare a function in SML
without printing the signature?
I found out that you can print a string without printing val it = () : unit
by doing:
val _ = print("Test1");
Is it possible to the same with functions? something like:
val _ = fun foo x = x + 5;
foo 10;
The following program won't compile in SML
.
I'm know that I can use let\local
but then I can't use them outside the closure. Also I am looking for a way, without importing additional libraries.