Mercurial > urweb
view demo/list.urs @ 1489:4437b008e0ab
Narrow Maybe match case.
author | Karn Kallio <kkallio@eka> |
---|---|
date | Wed, 06 Jul 2011 18:54:23 -0430 |
parents | 4d519baf357c |
children |
line wrap: on
line source
datatype list t = Nil | Cons of t * list t val length : t ::: Type -> list t -> int val rev : t ::: Type -> list t -> list t