Implementing native versions of Haskell functions according to JavaScript ES6 standards.
$ git clone https://github.com/casualjs/f
$ npm install
var ƒ = require('./lib/ƒ');
Test with:
$ npm test
Miscellaneous functions:
List operations:
Special folds:
Infinite lists:
Sublists:
-
take
asƒ.take
-
drop
asƒ.drop
-
splitAt
asƒ.splitAt
-
takeWhile
asƒ.takeWhile
-
dropWhile
asƒ.dropWhile
Zipping and unzipping lists: