Options
All
  • Public
  • Public/Protected
  • All
Menu

Type-class laws for Apply, as defined in the funland sub-project and in the static-land spec.

Apply inherits the laws of Functor and in addition must obey:

  1. Composition: F.ap(F.ap(F.map(f => g => x => f(g(x)), fbc), fab), fa) <-> F.ap(fbc, F.ap(fab, fa))

Type parameters

  • F

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

F

F: Apply<F>

Methods

applyComposition

  • applyComposition<A, B, C>(fa: HK<F, A>, fab: HK<F, function>, fbc: HK<F, function>): Equiv<HK<F, C>>
  • Type parameters

    • A

    • B

    • C

    Parameters

    • fa: HK<F, A>
    • fab: HK<F, function>
    • fbc: HK<F, function>

    Returns Equiv<HK<F, C>>

composition

  • composition<A, B, C>(fa: HK<F, A>, f: function, g: function): Equiv<HK<F, C>>
  • Type parameters

    • A

    • B

    • C

    Parameters

    • fa: HK<F, A>
    • f: function
        • (a: B): C
        • Parameters

          • a: B

          Returns C

    • g: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns Equiv<HK<F, C>>

identity

  • identity<A>(fa: HK<F, A>): Equiv<HK<F, A>>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc