Lemmas about Vector.zip, Vector.zipWith, Vector.zipWithAll, and Vector.unzip. #
Zippers #
zipWith #
theorem
Vector.getElem?_zipWith
{α : Type u_1}
{β : Type u_2}
{γ : Type u_3}
{n✝ : Nat}
{as : Vector α n✝}
{bs : Vector β n✝}
{f : α → β → γ}
{i : Nat}
:
See also getElem?_zipWith' for a variant
using Option.map and Option.bind rather than a match.
theorem
Vector.getElem?_zipWith'
{α : Type u_1}
{β : Type u_2}
{γ : Type u_3}
{n✝ : Nat}
{as : Vector α n✝}
{bs : Vector β n✝}
{f : α → β → γ}
{i : Nat}
:
Variant of getElem?_zipWith using Option.map and Option.bind rather than a match.
@[reducible, inline, deprecated Vector.zipWith_replicate (since := "2025-03-18")]
abbrev
Vector.zipWith_mkVector
{α : Type u_1}
{β : Type u_2}
{α✝ : Type u_3}
{f : α → β → α✝}
{a : α}
{b : β}
{n : Nat}
:
Equations
Instances For
zip #
unzip #
@[reducible, inline, deprecated Vector.unzip_replicate (since := "2025-03-18")]