Mercurial > urweb
comparison lib/ur/list.urs @ 1279:4c367c8f5b2d
List.mapi
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 13 Jun 2010 14:13:47 -0400 |
parents | 61c3139eab12 |
children | 4172863d049d |
comparison
equal
deleted
inserted
replaced
1278:cd8d2c73ccf4 | 1279:4c367c8f5b2d |
---|---|
19 val append : a ::: Type -> t a -> t a -> t a | 19 val append : a ::: Type -> t a -> t a -> t a |
20 | 20 |
21 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b | 21 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b |
22 | 22 |
23 val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b | 23 val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b |
24 | |
25 val mapi : a ::: Type -> b ::: Type -> (int -> a -> b) -> t a -> t b | |
24 | 26 |
25 val mapX : a ::: Type -> ctx ::: {Unit} -> (a -> xml ctx [] []) -> t a -> xml ctx [] [] | 27 val mapX : a ::: Type -> ctx ::: {Unit} -> (a -> xml ctx [] []) -> t a -> xml ctx [] [] |
26 | 28 |
27 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type | 29 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type |
28 -> (a -> m b) -> t a -> m (t b) | 30 -> (a -> m b) -> t a -> m (t b) |