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.
I think .ToString() here would print System.Collection. etc... but not the result. But would have to test it.
This comment is hidden because it contains spoiler information about the solution
The nicest solution i see here.
A bit slower but with more type safety
Actually, the compiling error was on a different point, but it was saying it was on the Array.take. And a vey obscure kind of message. Now it's fine. It's just that the mono version shows unrelated or strange errors...
It doesn't compile on F# if you use Array.take
It doesn't matter, because the kata description already says its just letters from a-z, so there is no need to check if it's a letter.
Version with recursion
I used a fold for better performance than doing a filter and then going trough the list again for counting the number of elements