dhall-nix-lib/Optional/all.dhall

5 lines
153 B
Text

λ(nix : ../NixPrelude.dhall) →
λ(a : Type) →
λ(f : a → Bool) →
λ(xs : Optional a) →
let fold = ./fold.dhall nix in fold a xs Bool f True