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.
Love it - super clean and easy to read! I guess performance wouldn't be great on very large lists - or will Haskell be able to take some shortcuts?
A really clever solution. One downside is that there is no early return, meaning that it will loop over every single value in what could be a very large array, even if a missing number has already been identified.
Yes,
forEach
would be more appropriate in this instance as the iteration doesn't need to return anything.