annotate lib/ur/list.urs @ 840:e4a02e4fa35c

Fix unbound name problem in Jscomp injectors; more List stuff
author Adam Chlipala <adamc@hcoop.net>
date Sat, 06 Jun 2009 15:29:34 -0400
parents b2413e4dd109
children 9f0ea203a1ca
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