|
|
|
|
|
by postalrat
1250 days ago
|
|
How about function bakeCake() {
return do(
() => gatherIngredients(),
ingredients => mix(ingredients),
batter => pour(batter, pan),
batterInPan => bake(batterInPan, 350, 45),
() => coolOff(bakedInPan),
cooledCake => separateFromPan(cooledCake)
);
}
|
|
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: