In here you'll find a homemade implmementation of all Data.List functions, most of them are defined in 2 or 3 different ways
So far I have made 88 of 113 functions
- Basic functions
- List transformations
- Reducing lists (folds)
- Building lists
- Sublists
- Searching lists
- Zipping and unzipping lists
- Special lists
- Generalized functions
I use the haskell interpreter with the folloing option:
ghci -XNPlusKPatterns -XMultiParamTypeClasses -XFlexibleInstances -XFlexibleContexts -XNoMonomorphismRestriction datalist.hs