0.1.3 • Published 10 years ago

func-coffee v0.1.3

Weekly downloads
2
License
BSD
Repository
github
Last release
10 years ago

func-coffee

Extensions of Javascript Array to be functional List, so you can write more functional Coffeescript codes.

API

Properties

  • 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

Methods

  • 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

Coffeescript conventions

  • contains: x in arr

Installation

$ npm install func-coffee

How to use it

require 'func-coffee'

[1, 2, 3, 4, 5].shuffle()

Unit Test

$ jasmine-node --coffee --verbose spec/

TBD

combinations
count
drop
dropRight
dropWhile
endsWith
maxBy
minBy
partition
permutations
product
startsWith
sum
takeRight
takeWhile
union
unzip
0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago