Published onFebruary 26, 2023Refactor Any Curried Function with Only Two Basic Functions in Typescript (or Any Language)typescriptfunctional-programminghaskellrefactorsemantic-editor-combinatorsHow to refactor any curried function by combining two basic functions, `compose` and `flip`, in a generic, mechanical and purely functional way. The arguments of any curried function can be swapped and/or altered at any (nested) level.