Skip to content

jasonkuhrt-archive/map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

map

A curried map function that works with Functors

Installation

Install with component(1):

$ component install jasonkuhrt/map

Install with npm(1):

$ npm install jasonkuhrt/map

Examples

var map = require('map');
var add = require('add');
var add1 = add(1);



map(add1, [1,2,3]);
// [1,2,3]
// First, curry map to a specialty version
var map_add1 = map(add1);

map_add1([1,2,3]);
// [2,3,4]

License

BSD-2-Clause

About

A curried map function that works with Functors

Resources

Stars

Watchers

Forks

Packages

No packages published