new Functor(value)
Plain old functor class.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
Properties:
Name | Type | Description |
---|---|---|
value |
* |
Methods
-
fmap(fn) → {Functor}
-
Same as
#Functor.map
.Parameters:
Name Type Description fn
function Returns:
Functor -
map(fn) → {Functor}
-
Maps a function over contents of functor.
Parameters:
Name Type Description fn
function Function that takes one
any
and returns oneany
.Returns:
Functor -
valueOf() → {*}
-
Extracts value of functor (same as monadic
join
).Returns:
*