A 2-arity kind which consists of objects and arrows between them.

All instances of category c must satisfy the following laws:

  • Right identity: For all f; c.compose(f)(c.identity()) equals to f,
  • Left identity: For all f; c.compose(c.identity())(f) equals to f,
  • Associativity: For all f, g and h; c.compose(f)(c.compose(g)(h)) equals to c.compose(c.compose(f)(g))(h).

Type Parameters

  • Cat

  • P

Hierarchy

Properties

assoc: (<A, B, C>() => Iso<Cat, Get2<P, A, Get2<P, B, C>>, Get2<P, Get2<P, A, B>, C>>)

Type declaration

cat1: Category<Cat>
cat2: Category<Cat>
cat3: Category<Cat>
compose: (<B, C>(funcA) => (<A>(funcB) => Instance<Apply2<Cat, C, A>>))

Type declaration

genericBiMap: (<A, B>(first) => (<C, D>(second) => Instance<Apply2<Cat, Instance<Apply2<P, D, B>>, Instance<Apply2<P, C, A>>>>))

Type declaration

identity: (<A>() => Instance<Apply2<Cat, A, A>>)

Type declaration

Generated using TypeDoc