Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Endofunctors

Name: Anonymous 2013-07-29 17:30

What is the difference between an endofunctor and a functor?

Name: Anonymous 2013-07-29 17:40

An endofunctor is a functor that maps a category to itself.

In Haskell, all Functors are endofunctors, because they map Haskell types and functions to new Haskell types and functions. For example, Maybe : HaskHask maps each type a to Maybe a, and each function a -> b to a function Maybe a -> Maybe b. (How this is done is exactly what the definition of fmap tells you.)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List