Skip to content

Feat request: .ap (apply) on ADTs #43

@jderochervlk

Description

@jderochervlk

I couldn't find an equivalent function in prelude-ts so please let me know if this exists and I am just missing it.

A common pattern on ADTs (algebraic data types) is ap (short for apply).

From the (Mostly Adequate Guide to Functional Programming)[https://mostly-adequate.gitbooks.io/mostly-adequate-guide/ch10.html#ships-in-bottles]:

ap is a function that can apply the function contents of one functor to the value contents of another.

Examples:
crocks
fp-ts
monet.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions