def
Array.map_option_subtype
{α : Type u_1}
{p : α → Prop}
[DecidablePred p]
(arr : Array (Option { m : α // p m }))
:
Unattach values of subtype in arr
and collect their properties.
Equations
- arr.map_option_subtype = ⟨Array.map (Option.map fun (x : { m : α // p m }) => x.val) arr, ⋯⟩
Instances For
as.contains bs
is true if as
contains all elems of bs
.
Equations
- as.all_contains bs = bs.all fun (b : α) => as.contains b