Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Bugger. I suspect, comparing the elm wiki page with the ruby one that the packages are currently limited to
elm/core
andelm-explorations/test
. If so, that's pretty limiting. Without it, I suppose one could manually copypaste the whole Regex module in to the preloaded section, but that seems clumsy. Summary: I don't know.This could also be solved arguably more neatly via a Regex e.g.
One other thought is that the markers input could be a
List String
rather than aList Char
. I don't know what Elm best practice is here. I suppose there is some benefit to forcing the list to be single characters rather than allow a multi-character through.To get this working I needed a
shuffle
which isn't natively provided by theRandom
library. I've pulled in the relevant functions fromelm-community/random-extra
andowanturist/elm-union-find
packages. Bit annoying though.That's a fair point. I'm still learning the Elm test framework so I'll have a think about how to go about this.
This comment is hidden because it contains spoiler information about the solution
Elm translation for review.