map

Transforms the contents of a Functor.

This feature is experimental!

This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.

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.

Experimental
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
experimental
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/)