Module Flambda.With_free_variables
A module for the manipulation of terms where the recomputation of free variable sets is to be kept to a minimum.
val of_expr : expr -> expr tTakes the time required to calculate the free variables of the given term (proportional to the size of the term, except that the calculation for
Letis O(1)).
val of_named : named -> named tval create_let_reusing_defining_expr : Variable.t -> named t -> expr -> exprTakes the time required to calculate the free variables of the given
expr.
val create_let_reusing_body : Variable.t -> named -> expr t -> exprTakes the time required to calculate the free variables of the given
named.
val contents : 'a t -> 'aval free_variables : _ t -> Variable.Set.tO(1) time.