@[inline]
Uncurry a two-argument function into a function on pairs. $$\text{uncurry}(f)(a, b) = f(a)(b)$$
Equations
- Data.Tuple.uncurry f p = f p.fst p.snd
Instances For
theorem
Data.Tuple.bimap_comp
{γ : Type u_1}
{δ : Type u_2}
{α : Type u_3}
{ε : Type u_4}
{ζ : Type u_5}
{β : Type u_6}
(f₁ : γ → δ)
(f₂ : α → γ)
(g₁ : ε → ζ)
(g₂ : β → ε)
(p : α × β)
:
bimap distributes over composition.
$$\text{bimap}(f_1 \circ f_2, g_1 \circ g_2, p) = \text{bimap}(f_1, g_1, \text{bimap}(f_2, g_2, p))$$