Equations
- xs.combinations n = sequence (List.replicate n xs)
Instances For
noncomputable def
List.dfltMapWith
{α : Type u_1}
{β : Type u_2}
{xs : List α}
(f : (x : α) → x ∈ xs → β)
(h : xs ≠ [])
:
β
Equations
- List.dfltMapWith f_2 h_2 = ⋯.elim
- List.dfltMapWith f_2 h_2 = ⋯.some
Instances For
Equations
- xs.countP! p = List.countP (fun (b : α) => decide (p b)) xs
Instances For
Equations
- List.filter! p xs = List.filter (fun (x : α) => decide (p x)) xs