let ( &^ ) = Int64.logand
let ( ~^ ) = Int64.lognot
+let rec filter_map f = function
+ | [] -> []
+ | x :: xs ->
+ match f x with
+ | Some y -> y :: filter_map f xs
+ | None -> filter_map f xs
+
let human_size i =
let sign, i = if i < 0L then "-", Int64.neg i else "", i in