Although if we had function currying, the convention in ML languages is to put the most-commonly-piped-in param last for these functions:
function bakeCake() {
return do(
gatherIngredients,
mix,
pour(pan), // assuming that pour(pan) returns a function that pours something into that pan
bake(350, 45), // assuming that bake(temp, minutes) returns a function that bakes something at that temperature for that time
coolOff,
separateFromPan
);
}
It could at least be
Although if we had function currying, the convention in ML languages is to put the most-commonly-piped-in param last for these functions: