exercism / sml

Exercism exercises in Standard ML.
https://exercism.org/tracks/sml
MIT License
27 stars 35 forks source link

Update generator, flatten-array & nth-prime #86

Closed snahor closed 6 years ago

snahor commented 6 years ago

Changes: flatten-array: update test, README, example & stub

mcmillhj commented 6 years ago

You didn't like the lazylist solution? :(

snahor commented 6 years ago

The lazy solution fails with the last case, it doesn't complete and :fire: my laptop. Maybe if it is combined with trial division or sieving can work, but I'm too lazy.

mcmillhj commented 6 years ago

That's fair, I didn't realize the last test case was just a large prime.