exercism / sml

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

Added exercise `gigasecond` #217

Closed rainij closed 1 year ago

rainij commented 1 year ago

Added exercise gigasecond with difficulty 4. I did not include the test on mutation since it does not naturally apply to SML.

rainij commented 1 year ago

I set the difficulty to 4 in the hope that this means "intermediate" (yellow, 2 points). I compared with other exercises for that but did not find documentation of the mapping of the numbers to the "levels".

I think it is "intermediate" since it seems to me that parsing a date from a string is not trivial in SML. I hope I did not overlook some "common" functionality which makes it trivial. See also my example.sml.

rainij commented 1 year ago

Concerning the failing github action ci: This is a build problem with poly-ml v5.8 due to an implicit ubuntu image update. I solved it in a different PR which must be merge before this one: https://github.com/exercism/sml/pull/218.