packages feed

dhall-1.14.0: Prelude/Optional/null

{-
Returns `True` if the `Optional` value is absent and `False` if present

Examples:

```
./null Natural ([ 2 ] : Optional Natural) = False

./null Natural ([] : Optional Natural) = True
```
-}
    let null
        : ∀(a : Type) → Optional a → Bool
        =   λ(a : Type)
          → λ(xs : Optional a)
          → Optional/fold a xs Bool (λ(_ : a) → False) True

in  null