Extensions of Javascript Array to be functional List, so you can write more functional Coffeescript codes.
- Array.prototype.head
- Array.prototype.init
- Array.prototype.isEmpty
- Array.prototype.last
- Array.prototype.max
- Array.prototype.min
- Array.prototype.nonEmpty
- Array.prototype.size
- Array.prototype.tail
-
Array.prototype.distinct
-
Array.prototype.exists
-
Array.prototype.flatMap
-
Array.prototype.flatten
-
Array.prototype.groupBy
-
Array.prototype.grouped
-
Array.prototype.shuffle
-
Array.prototype.splitAt
-
Array.prototype.take
-
Array.prototype.toMap
-
Array.prototype.zip
-
Object.prototype.map
- contains: x in arr
$ npm install func-coffee
require 'func-coffee'
[1, 2, 3, 4, 5].shuffle()
$ jasmine-node --coffee --verbose spec/