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, ⋯⟩