So I\'ve got an assignment in SML and I need a bit of help getting started. The problem goes like this
So I was writing up some code in standard ML, and trying to compile it with smlnj. I got the following error:
While writing a code in ml-lex we need to write to write the eof function val eof = f开发者_StackOverflow社区n () => EOF;
I need to create a new instance of a lexer tied to the standard input stream. However, when I type in
People have written games for the iPhone in Scheme. Becau开发者_如何学Pythonse (some) Scheme-compilers compile down to C, it was easy to mix with Objective-C and integrate with XCode.
is it possible to g开发者_如何学编程et element from the list in SML of New Jersey without using function head and tail, something like that:
I am having trouble with recursion in sml. Basically, I have a function called xyz which takes in an int and a deck (a datatype which I defi开发者_开发技巧ned) and returns a hand(a datatype which I de
I wrote a function which works as expected but i don\'t unde开发者_开发百科rstand why the output is like that.
hello everyone I\'m trying to write function which can unfold int in the list from any depth, for example if I have following bigList: [12, [34], [11,[1]]] I want to receive
I have this bit of code: fun foldr2(f, x::xs) = if xs = [] then x else f(x, foldr2(f, xs)) With the type signature