Examples implementing currying in high order funct