aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/ur/list.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@csail.mit.edu>2016-02-26 10:32:08 -0500
committerGravatar Adam Chlipala <adamc@csail.mit.edu>2016-02-26 10:32:08 -0500
commitb0368093645dcb7f65e131862d8ae9c81f2844f2 (patch)
tree1489b634f26d305ef082a44af62b3f7742b4aa6e /lib/ur/list.urs
parent69e9c6064e7728458a9ba365726706612d10e3f8 (diff)
More consistent formatting for new List functions
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r--lib/ur/list.urs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs
index ac874d7c..432d8c1a 100644
--- a/lib/ur/list.urs
+++ b/lib/ur/list.urs
@@ -106,8 +106,8 @@ val drop : t ::: Type -> int -> list t -> list t
val take : t ::: Type -> int -> list t -> list t
val splitAt : t ::: Type -> int -> list t -> list t * list t
-(** Longest prefix of elements, which satisfy a predicate *)
+(** Longest prefix of elements that satisfy a predicate, returned along with the remaining suffix *)
val span : a ::: Type -> (a -> bool) -> t a -> t a * t a
-(** Group a list *)
+(** Group a list into maximal adjacent segments where all elements compare as equal, according to the provided predicate. *)
val groupBy : a ::: Type -> (a -> a -> bool) -> t a -> t (t a)