Skip to content

[Feature 🔨]: Add Uniq and UniqF functions to generate only unique values  #146

Open
@apatniv

Description

Is your feature request related to a problem? Please describe.

Not really. There is workarounds possible but useful to do this in the library.

A clear and concise description of what the problem is. Ex. I'm always
frustrated when [...].

Add Uniq and UniqF functions to generate only unique values

Describe the solution you'd like

Signatures of the function:

func Uniq[V comparable](seq iter.Seq[V]) iter.Seq[V] {
	
}

func UniqF[V any](seq iter.Seq[V], comparator func(v1, v2 V) int) iter.Seq[V] {

}

Does this incur a breaking change?

No.

Do you intend to build this feature yourself?

Yes

Activity

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

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions