Mercurial > urweb
comparison lib/ur/list.urs @ 830:d07980bf1444
Defer pattern-matching exhaustiveness checks and normalize pattern types more thoroughly
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 30 May 2009 14:44:29 -0400 |
parents | d4e811beb8eb |
children | b2413e4dd109 |
comparison
equal
deleted
inserted
replaced
829:20fe00fd81da | 830:d07980bf1444 |
---|---|
13 val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b | 13 val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b |
14 | 14 |
15 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 [] [] |
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) -> t a -> m (t b) |
19 | |
20 val mapXM : m ::: (Type -> Type) -> monad m -> a ::: Type -> ctx ::: {Unit} | |
21 -> (a -> m (xml ctx [] [])) -> t a -> m (xml ctx [] []) | |
19 | 22 |
20 val filter : a ::: Type -> (a -> bool) -> t a -> t a | 23 val filter : a ::: Type -> (a -> bool) -> t a -> t a |
21 | 24 |
22 val exists : a ::: Type -> (a -> bool) -> t a -> bool | 25 val exists : a ::: Type -> (a -> bool) -> t a -> bool |
23 | 26 |