Util_pure.Listval sngl : 'a -> 'a tval iter_flip : 'a t -> ('a -> unit) -> unitval of_table : ('a, 'b) BatMap_real.t -> ('a * 'b) tval to_table : ('a * 'b) t -> ('a, 'b) BatMap_real.tval repeat_f : int -> (unit -> 'a) -> 'a tval repeat : int -> 'a -> 'a tThe opposite of cons, and reversed: `unsnoc a; b; c` gives `(a; b, c)`. Throws on empty list.
The opposite of cons, and reversed: `unsnoc a; b; c` gives `(a; b, c)`. Throws on empty list.
Given a function g and a list of functions fs, find the first one for which g (f ()) is true, and return Some (f ()). If none of them match, return None.
val find_f : ('a -> bool) -> (unit -> 'a) t -> 'a optionGiven a function g and a list of functions fs, find the first one for which g (f ()) is true, and return Some (f ()). If none of them match, return None.