Idris2/tests/idris2/literate013/Lit.lidr

17 lines
217 B
Plaintext
Raw Normal View History

> module Lit
>
> %default total
a > b
a < b
> data V a = Empty | Extend a (V a)
> isCons : V a -> Bool
> isCons Empty = False
> isCons (Extend _ _) = True
< namespace Hidden
< data U a = Empty | Extend a (U a)