Skip to content

proposal: x/exp/xiter: add IsSorted/IsSortedFunc #67457

@leaxoy

Description

@leaxoy

Proposal Details

Proposed add below functions:

func IsSorted[E cmp.Ordered](s Seq[E])

func IsSortedFunc[E any](s Seq[E], f func(E, E) int)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions