dhall-nix-lib/List/unpackOptionals.dhall
2022-09-01 19:37:49 +01:00

8 lines
271 B
Text

λ(nix : ../NixPrelude.dhall) →
let List/filterMap = ./filterMap.dhall nix
let unpackOptionals
: ∀(a : Type) → ∀(l : List (Optional a)) → List a
= λ(a : Type) → List/filterMap (Optional a) a (λ(x : Optional a) → x)
in unpackOptionals