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.
This is solution is mine and awful.
But TIL about SYNTAX: from the other solutions.
I was confused by this at first, but letter? checks whether the argument is a lowercase letter.
In factor, the acceptance tests sometimes expected a whole-number result to be given as an integer, and sometimes as a float with zero fractional part. I had to ATTEMPT several times until the (randomized) tests were happy with my "integerized" results.
Oh! We don't even need to test that our 2-group has two elements, because test-pair will give a difference of 0 for 1-element "pairs".
TIL about if-zero
Great solution! TIL about the english and sorting.human vocabularies.
It looks like we can replace
dup "glass" ?pluralize "%d %s of water" sprintf
with
"glass" count-of-things "%s of water" sprintf