Questions tagged [sml]

Standard ML is a high-level functional language with type inference and a sophisticated module system.

Filter by
Sorted by
Tagged with
3
votes
1answer
339 views

Prime number sieve in Standard ML

As practice, I have written a prime number sieve in Standard ML. It works in a pretty straightforward way: The list of known primes starts with just 2. Starting with 3, check whether each odd ...
5
votes
1answer
198 views

Porting Haskell list comprehensions to Standard ML

Out of curiosity I'm porting the Haskell exercises of Programming in Haskell by Graham Hutton to Standard ML. At the beginning everything seemed pretty similar until I reached list comprehensions: ...
4
votes
0answers
124 views

Refactored version of Okasaki's skew-binomial heaps in Standard ML

In his book, Purely Functional Data Structures, Chris Okasaki provides an implementation of skew-binomial heaps (p. 137). Unfortunately, the book isn't (legally) freely available anywhere, but his ...