annotate lib/ur/list.urs @ 890:034eeb099564

Blobs tested in MySQL and SQLite
author Adam Chlipala <adamc@hcoop.net>
date Sat, 18 Jul 2009 10:27:32 -0400
parents 1c2f335297b7
children ed06e25c70ef
rev   line source
adamc@794 1 datatype t = datatype Basis.list
adamc@794 2
adamc@846 3 val show : a ::: Type -> show a -> show (t a)
adamc@846 4 val eq : a ::: Type -> eq a -> eq (t a)
adamc@794 5
adamc@845 6 val foldl : a ::: Type -> b ::: Type -> (a -> b -> b) -> b -> t a -> b
adamc@850 7 val foldlAbort : a ::: Type -> b ::: Type -> (a -> b -> option b) -> b -> t a -> option b
adamc@850 8 val foldlMapAbort : a ::: Type -> b ::: Type -> c ::: Type
adamc@850 9 -> (a -> b -> option (c * b)) -> b -> t a -> option (t c * b)
adamc@845 10
adamc@794 11 val rev : a ::: Type -> t a -> t a
adamc@794 12
adamc@821 13 val revAppend : a ::: Type -> t a -> t a -> t a
adamc@821 14
adamc@821 15 val append : a ::: Type -> t a -> t a -> t a
adamc@821 16
adamc@794 17 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b
adamc@794 18
adamc@821 19 val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b
adamc@821 20
adamc@796 21 val mapX : a ::: Type -> ctx ::: {Unit} -> (a -> xml ctx [] []) -> t a -> xml ctx [] []
adamc@800 22
adamc@800 23 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type
adamc@830 24 -> (a -> m b) -> t a -> m (t b)
adamc@830 25
adamc@830 26 val mapXM : m ::: (Type -> Type) -> monad m -> a ::: Type -> ctx ::: {Unit}
adamc@830 27 -> (a -> m (xml ctx [] [])) -> t a -> m (xml ctx [] [])
adamc@821 28
adamc@821 29 val filter : a ::: Type -> (a -> bool) -> t a -> t a
adamc@822 30
adamc@822 31 val exists : a ::: Type -> (a -> bool) -> t a -> bool
adamc@822 32
adamc@840 33 val foldlM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type
adamc@840 34 -> (a -> b -> m b) -> b -> t a -> m b
adamc@840 35
adamc@822 36 val foldlMap : a ::: Type -> b ::: Type -> c ::: Type
adamc@822 37 -> (a -> b -> c * b) -> b -> t a -> t c * b
adamc@839 38
adamc@839 39 val search : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> option b
adamc@843 40
adamc@843 41 val all : a ::: Type -> (a -> bool) -> t a -> bool
adamc@844 42
adamc@844 43 val app : m ::: (Type -> Type) -> monad m -> a ::: Type
adamc@844 44 -> (a -> m unit) -> t a -> m unit
adamc@845 45
adamc@845 46
adamc@845 47 (** Association lists *)
adamc@845 48
adamc@845 49 val assoc : a ::: Type -> b ::: Type -> eq a -> a -> t (a * b) -> option b
adamc@845 50
adamc@845 51 val assocAdd : a ::: Type -> b ::: Type -> eq a -> a -> b -> t (a * b) -> t (a * b)