Add #curry function.
Extract a function module.