Functor
Functor
Bases: Generic[F, A]
, Protocol
Functor
Source code in funclift/functor.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
fmap(f)
fmap takes a function of type A -> B and produces a value of type F[B].
Parameters:
Name | Type | Description | Default |
---|---|---|---|
f |
Callable[[A], B]
|
A function of type A -> B |
required |
Returns:
Type | Description |
---|---|
Functor[F, B]
|
Functor[F, B]: A value of type F[B] |
Source code in funclift/functor.py
15 16 17 18 19 20 21 22 23 24 25 |
|