Idris2/tests/idris2/literate/literate013/Lit.lidr
2023-09-07 14:57:22 +01:00

17 lines
217 B
Idris

> 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)