python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Binding not exhaustive warning in SML/NJ but not in F# for same pattern
The SML/NJ code below results in a binding not exhaustive warning for "val Grove(whatTree) = glen". The F# equivalent code produces no warning. Why?
Standard ML of New Jersey (32-bit) v110.9...
LearnerX
Votes: 0
Answers: 1
SML Sieve of Eratosthenes
I am new to SML. I am trying to create a function that outputs a list of all prime numbers which are smaller than or equal to a given integer n > 2 using the Sieve of Eratosthenes. I am running int...
Melty
Votes: 0
Answers: 1
SML Function to make a list from 1 to n
I am new to SML and was a bit confused. I am trying to write a function called makeList of type int -> int list that takes as input a positive integer n and returns the list [1, 2, ..., n]
I want t...

Psycho Bunnies
Votes: 0
Answers: 1
What does double colon mean in SML when summing up list of numbers?
I cannot quite understand the logic behind following function. This function is used to sum up the numbers in the list. But the tutor doesn't tell much about what :: does here.
The original list in th...
Ozan Palanci
Votes: 0
Answers: 1