Utils.MiscSourceSeveral useful types and functions
flip f x y is f y x
id x is x
iter_fix eq f x iterates f, starting with x, until idempotence, i.e. computes f (f (f ... f(x)...)) until the condition f(x)=x is met. Equality test is performed with the eq argument
append_file f s appends s to file f