effect icon indicating copy to clipboard operation
effect copied to clipboard

Expand `Option.composeK` to support more than 2 functions.

Open rxt30 opened this issue 4 weeks ago • 0 comments

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.

rxt30 avatar Dec 01 '25 13:12 rxt30