Murat Kasimov

More about me

Я language (β)

/Я language (β)/Glossary/Functor/

Functor is a mapping between categories. Depends the way functors map morphisms they could be either covariant or contravariant. Covariant functors map morphisms as it is, contravariant functors flip morphisms:

: from a o `AR_` into ( t a ) ( t o ) | covariant : from o a `AR_` into ( t a ) ( t o ) | contravariant

Functor mapping operators in Я are Yonedified:

`yo` : t a `AR__` into ( from a o ) ( t o ) `ya` : t a `AR__` into ( from o a ) ( t o )

We compose functors by treating one of them as an argument of another one:

`yo'yo` : t ( tt a ) `AR__` into ( from a o ) ( t ( tt o ) ) `yo'ya` : t ( tt a ) `AR__` into ( from o a ) ( t ( tt o ) ) `ya'yo` : t ( tt a ) `AR__` into ( from o a ) ( t ( tt o ) ) `ya'ya` : t ( tt a ) `AR__` into ( from a o ) ( t ( tt o ) )

Functors which map from and into the same category are called endo functors.

: into a o `AR_` into ( t a ) ( t o ) | covariant : into o a `AR_` into ( t a ) ( t o ) | contravariant