Skip to content

Expand Option.composeK to support more than 2 functions. #5842

@rxt30

Description

@rxt30

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions