effect
effect copied to clipboard
Expand `Option.composeK` to support more than 2 functions.
What is the problem this feature would solve?
In the current form, Option.composeK only supports chaining 2 functions. Therefore, multiple Option.composeK/Option.map are needed, if multiple Option-returning functions are chained together. This introduces clutter in the code without any additional information.
What is the feature you are proposing to solve the problem?
Expand Option.composeK to support chaining multiple functions instead of only 2 functions.
What alternatives have you considered?
Using multiple Option.composeK/Option.map at the cost of additional clutter.