[ocaml-extlib] r414 committed - fix signature for ExtList.iteri (return type is unit)

1 view
Skip to first unread message

codesite...@google.com

unread,
Jul 7, 2013, 3:02:45 AM7/7/13
to ocaml-extl...@googlegroups.com
Revision: 414
Author: ygrekheretix
Date: Sun Jul 7 00:02:08 2013
Log: fix signature for ExtList.iteri (return type is unit)

http://code.google.com/p/ocaml-extlib/source/detail?r=414

Modified:
/trunk/extlib/extList.mli

=======================================
--- /trunk/extlib/extList.mli Wed Apr 23 05:03:57 2008
+++ /trunk/extlib/extList.mli Sun Jul 7 00:02:08 2013
@@ -51,7 +51,7 @@
(** Returns the last element of the list, or raise [Empty_list] if
the list is empty. This function takes linear time. *)

- val iteri : (int -> 'a -> 'b) -> 'a list -> unit
+ val iteri : (int -> 'a -> unit) -> 'a list -> unit
(** [iteri f l] will call [(f 0 a0);(f 1 a1) ... (f n an)] where
[a0..an] are the elements of the list [l]. *)

Reply all
Reply to author
Forward
0 new messages