0.1.3 • Published 9 years ago

func-coffee v0.1.3

Weekly downloads
2
License
BSD
Repository
github
Last release
9 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

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago