module Flx_util: sig
.. end
Generic utilities
val spaces : int -> string
n spaces
val catmap : string -> ('a -> string) -> 'a list -> string
String.concat sep (map fun lst)
val (+>) : 'a -> ('a -> 'b) -> 'b
reverse application
val transpose : 'a list list -> 'a list list
hmmm
val list_last : 'a list -> 'a
last element of list
val list_index : 'a list -> 'a -> int option
position in list of value
val list_omap : ('a -> 'b) -> 'a list -> 'b list
forward order map
val catch_all : ('a -> 'b) -> 'a -> 'b option
convert exception to option
val is_some : 'a option -> bool
test if option not None
val nlist : int -> int list
list of n integers 0 to n-1
val list_prefix : 'a list -> int -> 'a list
first n elements of a list
val si : int -> string
synonym for string_of_int
val cat : string -> string list -> string
synonym for String.concat
val bcat : Buffer.t -> string -> unit
synonym for Buffer.add_string
val hashtable_of_list : ('a * 'b) list -> ('a, 'b) Hashtbl.t
make a hashtable from an assoc list
val fix : (('a -> 'b) -> 'a -> 'b) -> 'a -> 'b
fixpoint combinator
val uniq_cat : 'a list -> 'a list -> 'a list
add elements to unique list
val uniq_list : 'a list -> 'a list
make a list of unique elements