sml
SML binary tree reduce function
So I\'ve got an assignment in SML and I need a bit of help getting started. The problem goes like this[详细]
2023-02-11 18:44 分类:问答Can I expand a typedef in SMLNJ?
So I was writing up some code in standard ML, and trying to compile it with smlnj. I got the following error:[详细]
2023-02-11 11:32 分类:问答How to detect eof in ml-lex
While writing a code in ml-lex we need to write to write the eof function val eof = f开发者_StackOverflow社区n () => EOF;[详细]
2023-02-07 14:10 分类:问答building a lexical analyser using ml-lex
I need to create a new instance of a lexer tied to the standard input stream. However, when I type in[详细]
2023-02-06 09:58 分类:问答Is there a Haskell/ML-like compiler to C?
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.[详细]
2023-02-05 01:41 分类:问答mechanism to get element from the list
is it possible to g开发者_如何学编程et element from the list in SML of New Jersey without using function head and tail, something like that:[详细]
2023-02-04 07:47 分类:问答Standard ML Recursive Function
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[详细]
2023-02-03 23:18 分类:问答Output is truncated with #-signs in the REPL
I wrote a function which works as expected but i don\'t unde开发者_开发百科rstand why the output is like that.[详细]
2023-02-01 18:44 分类:问答unfolding lists in ML
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[详细]
2023-01-31 05:59 分类:问答SML list equality oddness
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[详细]
2023-01-31 04:10 分类:问答