1.0.3 • Published 10 years ago

monoid-max v1.0.3

Weekly downloads
13
License
-
Repository
github
Last release
10 years ago

Monoid Max

Fantasy Land Compliant!

An implementation of the max monoid in javascript

Example

var Max = require("monoid-max");

var list = [
    new Max(52),
    new Max(72),
    new Max(42),
    new Max(63),
    new Max(65),
    new Max(93)
];

var result = list.reduce(function(a, b) { return a.concat(b); });

console.log(result.value());
//prints 93
1.0.3

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago