->bind(function () {
return exitSuccess_()
->bind(function () {
+ // In interpretation of IO Monad this place will never be reached
return putStrLn_('Finished');
});
});
getLine_,
bind(putStrLn_),
bind(exitSuccess_),
- bind(putStrLn_)
+ bind(putStrLn_) // In interpretation of IO Monad this place will never be reached
)(null);
}
{
return [
'echo implementation via explicit chaining (bind)' => [echo_chaining_()],
- 'echo implementation via function composition' => [echo_composition_()],
+ 'echo implementation via function composition' => [echo_composition_()],
];
}
}