Skip to content

[API Proposal]: Collections: Add useful inverses #683

Description

@gusty

Background and motivation

See demystifyfp/FsToolkit.ErrorHandling#377

API Proposal

isNotEmpty // see https://github.com/jet/propulsion/blob/master/src/Propulsion/Internal.fs#L239
reject
none

API Usage

see demystifyfp/FsToolkit.ErrorHandling#377

Alternative Designs

Don't implement anything, keep doing:

not << isEmpty
filter (not << predicate)
forall (not << predicate)
isNotEmpty xs && forall predicate xs

Risks

Possible divergence/clash with future F# core additions.

Are you willing to help with a proof-of-concept (as PR in that or a separate repo) first and as pull-request later on?

No Maybe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions