Skip to content

Rename Some/SomeBy to Any/AnyBy #632

@grosser

Description

@grosser

similar argument to #54 to get an alias

SomeBy sounds very complicated to me and what I'm usually asking is "are any X?"
... ideally Any since to me Any([1,2,3], [1,2]) makes no sense,
but open to AnyBy if that is needed for consistency

lo.SomeBy(list, func(i int) bool { return i % 4 == 0 })
->
lo.Any(list, func(i int) bool { return i % 4 == 0 })

cc @elliot-u410 @CorentinClabaut

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeIntroduces changes that break backward compatibility or alter the public API.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions