Length and indexing of concatenated pairs #
Flattening a list of two-element blocks doubles its length and places the two components at the even and odd positions.
theorem
RS.getElem?_flatMap_pair_even
{α : Type u_1}
{β : Type u_2}
(L : List α)
(f g : α → β)
(j : ℕ)
:
Alias of RS.getElemOption_flatMap_pair_even.
Even positions in a list of pairs come from the first component.
Alias of RS.getElemOption_self_paired.
In a flatMap of [x, h x] blocks, element 2j+1 is h applied to element 2j.