Extend
Comonad
extract
. " comonad", . , " ". , -, , , Extend
. Neighborhood of Infinity comonads .
Monad
Applicative
, . Bind
Monad
, return
, Apply
- Applicative
, pure
. semigroupoids
, .
, comonad, duplicate = tails
extract = head
. extend f = fmap f . duplicate
. , NonEmpty
, , extract = head
. duplicate
Extend
, []
Extend
, Comonad
. ( @phadej !)