HelloWorld - 0.1.0

Stdlib.Data.Product.Base

Definitions

type × (A : Type) (B : Type)Source#

Inductive pair. I.e. a tuple with two components.

Constructors

| , : ABA × B

uncurry : {A : Type} -> {B : Type} -> {C : Type} -> (A -> B -> C) -> A × B -> CSource#

Converts a function of two arguments to a function with a product argument.

curry : {A : Type} -> {B : Type} -> {C : Type} -> (A × B -> C) -> A -> B -> CSource#

Converts a function with a product argument to a function of two arguments.

fst : {A : Type}{B : Type}A × BASource#

Projects the first component of a tuple.

snd : {A : Type}{B : Type}A × BBSource#

Projects the second component of a tuple.

swap : {A : Type}{B : Type}A × BB × ASource#

Swaps the components of a tuple.

first : {A : Type}{B : Type}{A' : Type}(AA')A × BA' × BSource#

Applies a function to the first component.

second : {A : Type}{B : Type}{B' : Type}(BB')A × BA × B'Source#

Applies a function to the second component.

both : {A : Type}{B : Type}(AB)A × AB × BSource#

Applies a function to both components.