Commits

camlspotter committed be3e31d

cleanup for 2.3.1

Comments (0)

Files changed (5)

 ---------------
 
 - Added Option.iter
+- Added Option.(||=), Spot.(||=) the opposite bind
 - Added UniqueID
 - Added Once
 - Hashtbl.of_list and to_list accept double bindings
+- Added List.accum, List.(+::=) and Spot.(+::=)
 
 2.3.0
 ------------
 val (||=) : 'a t -> (unit -> 'a t) -> 'a t  
 (** Chain of defaults
     [Some v ||= f  =  Some v]
-    [Noen ||= f    =  f ()]
+    [None ||= f    =  f ()]
 *)
 
 val catch : (fail:(unit -> 'exn) -> 'a) -> 'a option
   include List
   include Xlist
 end
+include Xlist.Pervasives
 
 module Array = struct
   include Array
   let (+::=) = (+::=)
 end
 
+module Pervasives = Infix
   (** Same as [accum] *)
 end
 
+module Pervasives : sig
+  val (--) : int -> int -> int list
+  (** [same as from_to. [f--t = [f..t]] ] *)
+
+  val (+::=) : 'a list ref -> 'a -> unit
+  (** Same as [accum] *)
+end
+
 
 module TR : sig
   val map : ('a -> 'b) -> 'a list -> 'b list