smlnj
How do I iterate a list?
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.[详细]
2023-01-26 05:00 分类:问答Standard ML permutations
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[详细]
2023-01-23 20:05 分类:问答SML/ML Int to String conversion
I have this code: datatype \'a Tree = Empty | LEAF of \'a | NOD开发者_如何学运维E of (\'a Tree) list;[详细]
2023-01-23 17:59 分类:问答SMLNJ expand # in output
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[详细]
2023-01-16 18:48 分类:问答Pattern matching with reals (Standard ML)
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[详细]
2023-01-05 21:26 分类:问答convert string to list in Standard ML [duplicate]
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:[详细]
2022-12-19 10:57 分类:问答Ml file reading limits
I want to read from file but, when I use inputAll or inputLine, it rea开发者_开发知识库d only 70 character from each line.[详细]
2022-12-18 13:18 分类:问答Strongly Connected Components (SCC graph algorithm) in SML [closed]
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[详细]
2022-12-18 08:54 分类:问答Polymorphic function as return value and value restriction in SML
Basically, I want to have a function to return a polymorphic function, some thing like this: fun foo () = fn x => x[详细]
2022-12-18 02:41 分类:问答Line Comments in Standard ML
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[详细]
2022-12-15 17:26 分类:问答