Functional Parametric Folding