datatype term = node of string*term list 开发者_运维百科| vnode of string I have a value of type term. How do I print it in SML to the standard output?You need to first create a string out of the te
I was going through some notes and I realized something is amiss. When emulating lazy computation (without open Lazy;) one can do the following for a stream of ones.
I want to learn and use ML but there are many compile开发者_如何学Gors out there. I need: speed low memory usage
hi i need help understanding why I am getting a value restriction error in this code and how I can solve it if possible.
I am trying to 开发者_运维问答implement a concurrent list using CML extensions of Standard ML but i am running into errors that are probably to do with my being a newbie in Standard ML.I have implemen
I want to use functions in a \"circular\" way, as show开发者_StackOverflow中文版n in the following example:
I\'m trying to get SML/NJ to print out a result at the top level without putting # signs everywhere. According to some old docs (and a post to this newsgroup on 2001), it
i want to find the height o开发者_运维知识库f a tree in sml.The tree is not a regular one it could have any number of nodes at a level.Futher the datatypes that it holds is also abstract.could someone
I start to learn Standard ML, and now I try to use Standard ML of New Jersey compiler. 开发者_如何学GoNow I can use interactive loop, but how I can compile source file to standalone executable?
Where let\'s say: datatype bin_tree = Empty | Node of value * bin_tree * bin_tree How would I go about filling a binary tree (not a binary search tree where left is sma开发者_运维问答ller than root