Top "Smlnj" questions

Standard ML of New Jersey (SML/NJ)

How do I find largest number in List in SML

We want to find the largest value in a given nonempty list of integers. Then we have to compare elements …

list sml smlnj
SML-NJ, how to compile standalone executable

I start to learn Standard ML, and now I try to use Standard ML of New Jersey compiler. Now I …

sml smlnj
What are the options SOME and NONE in SML?

I am new to SML (and programming, actually). fun readlist (infile : string) = let val ins = TextIO.openIn infile fun loop …

sml smlnj
nested local declarations in ML of NJ

hello everyone I have this snippet of the code: local helper(f, i, j) = local fun NTimesF(f, n:int) = …

sml smlnj
mechanism to get element from the list

is it possible to get element from the list in SML of New Jersey without using function head and tail, …

list sml smlnj
Remove duplicates from a list in SML

I just started learning functional programming in SML and I want to know how I can combine the following two …

recursion functional-programming sml smlnj
How do I install a working version of Standard ML on Mac?

I'm using Mac OSX 10.7.5 and I can't seem to get download a working Standard ML compiler with a REPL available. …

functional-programming sml smlnj
Find if Duplicates Exist SML NJ

I want to write a single function that searches a list and finds if there are any duplicates values in …

functional-programming sml smlnj