I am trying to do basi开发者_StackOverflowc list operations with SML. I want to extract each element of the list and append string to that element and add it back to the list.
I am working on a function to the permutations for all values in a list. Here is what I have so far: //MY ROTATE FUNCTION
I have this code: datatype \'a Tree = Empty | LEAF of \'a | NOD开发者_如何学运维E of (\'a Tree) list;
I have the following: val it = DATAX (\"hello\",DATAX (\"world\",DATAX #,DATAX #),... Is there a way to make the SMLNJ interpreter expand \"#\" so that I can see what开发者_JS百科 the exact data is
Doing this: fun test a 0.0 = \"good\" test a b = \"bad\"; results in an error, but if I change the 0.0 the error goes away. However, I n开发者_开发百科eed to match 0.0 and I\'m wondering if and h
This question already has answers here: Closed 12 years ago. Possible Duplicate: Open file in ML(SMLNJ) I have a string value which has value like this:
I want to read from file but, when I use inputAll or inputLine, it rea开发者_开发知识库d only 70 character from each line.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
Basically, I want to have a function to return a polymorphic function, some thing like this: fun foo () = fn x => x
I\'m learning ML, with th开发者_运维问答e SML/NJ dialect. What I\'m trying to figure out is if there is a line comment operator. I found the block comment operator, (* ... *), but I really miss line c