Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Make all functions curried by default #8

@mstade

Description

@mstade

If all functions are by default curried, then in many cases you can do partials without needing partial. Example:

exists = not(partial(eq, null))

... becomes ...

exists = not(eq(null))

Since eq needs at least two (well, in the current impl it only ever cares about two) arguments it would return a function rather than a result. That is, provided all functions are curried. There's an obvious performance hit to this, but I reckon it could be worth it for the lovely code it could produce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions