map

Transforms the contents of a Functor.

Signature

map(functor, transformation)
forall F, a, b:
  (F a, (a) => b) => F b
where F is Functor

Documentation

Transforms the contents of a Functor.

Properties

Convenience

curried()

Transforms the contents of a Functor.

infix(transformation)

Transforms the contents of a Functor.

Experimental

Source Code

Defined in source/fantasy-land/map.js at line 30, column 0
(functor, transformation) =>
  isNew(functor) ?  functor[flMap](transformation)
: isOld(functor) ?  warn(functor.map(transformation))
: /*otherwise*/     unsupported(functor)
Stability
stable
Licence
MIT
Module
folktale/fantasy-land/map
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • @boris-marinov
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)