dhall-nix-lib/Optional/toList.dhall
2022-09-01 19:37:49 +01:00

6 lines
179 B
Text

λ(nix : ../NixPrelude.dhall) →
let fold = ./fold.dhall nix
in λ(a : Type) →
λ(o : Optional a) →
fold a o (List a) (λ(v : a) → [ v ]) ([] : List a)