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.
map
->fmap
&id
->identity
All the issues should be resolved. Let me know if I missed anything.
I am removing
**kwargs
. While I would put it in a library to use in my own code, it makes the exercise more complicated than needed.Python and Haskell are similar in this way. They both specializized
map
to lists, but it should be generic. Because of the similar history, I think usingfmap
would be fine here. I do want to keep map in this kata instead of using lift since seeing the connection to list's map is part of the point. I also thought aboutlift2
,liftN
, etc, but given Python's *args feature I thought it would be appropiate to just haveliftN
.