Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Add IterableExtension.shuffled #298

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Conversation

ebraminio
Copy link
Contributor

@ebraminio ebraminio commented Jul 13, 2023

Creates a shuffled list of the elements of the iterable.

For example Kotlin has an immutable shuffled https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/shuffled.html in addition a mutable one so thought might be useful here also as wanted to use it in my other PR.

@ebraminio ebraminio force-pushed the shuffled branch 2 times, most recently from e4f74f1 to f3697ba Compare July 13, 2023 14:53
Copy link
Contributor

@natebosch natebosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems useful enough to me. Any concerns @lrhn ?

@lrhn
Copy link
Contributor

lrhn commented Aug 10, 2023

LGTM. Consistent with sorted.

Creates a shuffled list of the elements of the iterable.
@ebraminio
Copy link
Contributor Author

ebraminio commented Aug 10, 2023

So just rebased it, thanks

@natebosch natebosch merged commit 8bcb6af into dart-archive:master Aug 10, 2023
@ebraminio ebraminio deleted the shuffled branch August 12, 2023 09:05
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 18, 2024
Creates a shuffled list of the elements of the iterable.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants