comparison lib/ur/list.urs @ 822:d4e811beb8eb

fn-pattern code in but not tested yet; hello compiles
author Adam Chlipala <adamc@hcoop.net>
date Thu, 28 May 2009 10:16:50 -0400
parents 395a5d450cc0
children d07980bf1444
comparison
equal deleted inserted replaced
821:395a5d450cc0 822:d4e811beb8eb
16 16
17 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type 17 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type
18 -> (a -> m b) -> list a -> m (list b) 18 -> (a -> m b) -> list a -> m (list b)
19 19
20 val filter : a ::: Type -> (a -> bool) -> t a -> t a 20 val filter : a ::: Type -> (a -> bool) -> t a -> t a
21
22 val exists : a ::: Type -> (a -> bool) -> t a -> bool
23
24 val foldlMap : a ::: Type -> b ::: Type -> c ::: Type
25 -> (a -> b -> c * b) -> b -> t a -> t c * b