annotate lib/ur/list.urs @ 844:74a1e3bdf430

Fix datatype import bug in Elaborate; fix server-side source setting; more standard library stuff
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Jun 2009 16:45:00 -0400
parents 9f0ea203a1ca
children 6725d73c3c31
rev   line source
adamc@794 1 datatype t = datatype Basis.list
adamc@794 2
adamc@794 3 val show : a ::: Type -> show a -> show (list a)
adamc@794 4
adamc@794 5 val rev : a ::: Type -> t a -> t a
adamc@794 6
adamc@821 7 val revAppend : a ::: Type -> t a -> t a -> t a
adamc@821 8
adamc@821 9 val append : a ::: Type -> t a -> t a -> t a
adamc@821 10
adamc@794 11 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b
adamc@794 12
adamc@821 13 val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b
adamc@821 14
adamc@796 15 val mapX : a ::: Type -> ctx ::: {Unit} -> (a -> xml ctx [] []) -> t a -> xml ctx [] []
adamc@800 16
adamc@800 17 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type
adamc@830 18 -> (a -> m b) -> t a -> m (t b)
adamc@830 19
adamc@830 20 val mapXM : m ::: (Type -> Type) -> monad m -> a ::: Type -> ctx ::: {Unit}
adamc@830 21 -> (a -> m (xml ctx [] [])) -> t a -> m (xml ctx [] [])
adamc@821 22
adamc@821 23 val filter : a ::: Type -> (a -> bool) -> t a -> t a
adamc@822 24
adamc@822 25 val exists : a ::: Type -> (a -> bool) -> t a -> bool
adamc@822 26
adamc@840 27 val foldlM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type
adamc@840 28 -> (a -> b -> m b) -> b -> t a -> m b
adamc@840 29
adamc@822 30 val foldlMap : a ::: Type -> b ::: Type -> c ::: Type
adamc@822 31 -> (a -> b -> c * b) -> b -> t a -> t c * b
adamc@839 32
adamc@839 33 val assoc : a ::: Type -> b ::: Type -> eq a -> a -> t (a * b) -> option b
adamc@839 34
adamc@839 35 val search : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> option b
adamc@843 36
adamc@843 37 val all : a ::: Type -> (a -> bool) -> t a -> bool
adamc@844 38
adamc@844 39 val app : m ::: (Type -> Type) -> monad m -> a ::: Type
adamc@844 40 -> (a -> m unit) -> t a -> m unit