Utils.MiscSourceSeveral useful types and functions
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