comparison demo/more/dlist.urs @ 944:da3ec6014d2f

Filters implementation type-checking
author Adam Chlipala <adamc@hcoop.net>
date Tue, 15 Sep 2009 15:48:53 -0400
parents 37dd42935dad
children 103ac1792c41
comparison
equal deleted inserted replaced
943:e2194a6793ae 944:da3ec6014d2f
1 con dlist :: Type -> Type 1 con dlist :: Type -> Type
2 type position 2 type position
3 3
4 val create : t ::: Type -> transaction (dlist t) 4 val create : t ::: Type -> {Filter : t -> signal bool} -> transaction (dlist t)
5 val clear : t ::: Type -> dlist t -> transaction unit 5 val clear : t ::: Type -> dlist t -> transaction unit
6 val append : t ::: Type -> dlist t -> t -> transaction position 6 val append : t ::: Type -> dlist t -> t -> transaction position
7 val delete : position -> transaction unit 7 val delete : position -> transaction unit
8 val elements : t ::: Type -> dlist t -> signal (list t) 8 val elements : t ::: Type -> dlist t -> signal (list t)
9 val foldl : t ::: Type -> acc ::: Type -> (t -> acc -> signal acc) -> acc -> dlist t -> signal acc 9 val foldl : t ::: Type -> acc ::: Type -> (t -> acc -> signal acc) -> acc -> dlist t -> signal acc