comparison lib/ur/list.urs @ 821:395a5d450cc0

Chars and more string operations
author Adam Chlipala <adamc@hcoop.net>
date Tue, 26 May 2009 12:25:06 -0400
parents e92cfac1608f
children d4e811beb8eb
comparison
equal deleted inserted replaced
820:91f465ded07e 821:395a5d450cc0
2 2
3 val show : a ::: Type -> show a -> show (list a) 3 val show : a ::: Type -> show a -> show (list a)
4 4
5 val rev : a ::: Type -> t a -> t a 5 val rev : a ::: Type -> t a -> t a
6 6
7 val revAppend : a ::: Type -> t a -> t a -> t a
8
9 val append : a ::: Type -> t a -> t a -> t a
10
7 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b 11 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b
12
13 val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b
8 14
9 val mapX : a ::: Type -> ctx ::: {Unit} -> (a -> xml ctx [] []) -> t a -> xml ctx [] [] 15 val mapX : a ::: Type -> ctx ::: {Unit} -> (a -> xml ctx [] []) -> t a -> xml ctx [] []
10 16
11 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type 17 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type
12 -> (a -> m b) -> list a -> m (list b) 18 -> (a -> m b) -> list a -> m (list b)
19
20 val filter : a ::: Type -> (a -> bool) -> t a -> t a