Skip to content

Mapping predicate functions #86

Open
@practicalli-johnny

Description

@practicalli-johnny

Its common to use a predicate function with filter remove map functions

(remove (fn [x] x=something) my-sequence)

it's idiomatic to use sets in this case:

(remove #{something} sequence)

Alternatively,
(partial = something)
or
#(= % something)

no need for a specialized function

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions