julia
add `shuffle(::NTuple)` to `Random`
#56906
Merged

add `shuffle(::NTuple)` to `Random` #56906

nsajko
nsajko nsajko added randomness
nsajko nsajko added stdlib
nsajko nsajko added feature
nsajko
nsajko commented on 2024-12-26
nsajko nsajko force pushed from 7c9cbf9a to b2eb86a7 1 year ago
rfourquet rfourquet added needs docs
rfourquet rfourquet added needs news
nsajko nsajko force pushed from 213f598b to 7bb811d3 1 year ago
nsajko
nsajko commented on 2025-05-09
nsajko
nsajko commented on 2025-05-09
nsajko nsajko force pushed from 70fa8ac6 to 45771628 1 year ago
nsajko nsajko removed needs news
nsajko nsajko removed needs docs
nsajko nsajko added status: waiting for PR reviewer
nsajko nsajko removed status: waiting for PR reviewer
nsajko nsajko added DO NOT MERGE
nsajko
nsajko
nsajko commented on 2025-05-09
nsajko nsajko removed DO NOT MERGE
rfourquet
rfourquet commented on 2025-05-09
nsajko
nsajko commented on 2025-05-09
nsajko
nsajko commented on 2025-05-09
nsajko nsajko added status: waiting for PR reviewer
rfourquet
rfourquet commented on 2025-05-12
rfourquet rfourquet added needs compat annotation
rfourquet
nsajko nsajko force pushed from f6839f7e to dcd43a7d 1 year ago
nsajko nsajko removed needs compat annotation
nsajko nsajko removed status: waiting for PR reviewer
nsajko nsajko added status: waiting for PR author
nsajko nsajko force pushed from 20c81c38 to c7a76077 1 year ago
nsajko
nsajko nsajko removed status: waiting for PR author
nsajko nsajko force pushed from e5c2354a to 1e7a2536 1 year ago
nsajko nsajko added status: waiting for PR reviewer
nsajko add `shuffle(::NTuple)` to `Random`
7936a9f4
nsajko rely on `shuffle!` and on escape analysis instead of on recursion
f3fb9f9a
nsajko bugfix: use provided pseudorandom generator
dc162c38
nsajko simplify using `randperm!` as per rfourqet
2eee6e61
nsajko delete unnecessary branch
8a8efffa
nsajko reindent
fcec4668
nsajko add news
9e9c1a53
nsajko update doc string, and apply it to the function instead of to a method
ed3e09a8
nsajko use narrower type when possible as per rfourqet
5b50ae3f
nsajko de-hardcode `typemax(UInt8)`
90f1d2df
nsajko safer
6e80b0d6
nsajko use `shuffle!` instead of `randperm!` again
18ededb7
nsajko relax one-arg method
c6c39973
nsajko simpler dispatch constraint
4ab6f864
nsajko delete now unnecessary method
d7191ef5
nsajko delete extraneous newline
8f3800f8
nsajko omit no alloc test set
ba162dc2
nsajko fix dispatch constraint: restrict to `NTuple`
912ec6c7
nsajko add compat annotation to doc string
35feb2dd
nsajko adjust "not identity at least once" test
bed23af8
nsajko expand comment
9944d1c7
nsajko simplify syntax, less `let`, etc
6ebd8244
nsajko use `randperm!` again, as it supports `Memory` now
d1ea278d
nsajko nsajko force pushed from 1e7a2536 to d1ea278d 1 year ago
nsajko
nsajko restrict the one-arg method from `Tuple` to `NTuple`
f9dd73df
nsajko Merge branch 'master' into shuffle_ntuple
157ad7a1
nsajko
adienes
adienes commented on 2025-06-16
nsajko
nsajko Merge branch 'master' into shuffle_ntuple
468c0235
nsajko Merge branch 'master' into shuffle_ntuple
c7ace206
nsajko
nsajko
adienes
adienes commented on 2025-08-11
adienes
adienes commented on 2025-08-11
nsajko elide the typeassert
4b3c1411
adienes
adienes approved these changes on 2025-08-15
adienes adienes removed status: waiting for PR reviewer
adienes adienes added merge me
nsajko Merge branch 'master' into shuffle_ntuple
b69ed598
IanButterworth IanButterworth merged f4af91db into master 351 days ago
nsajko nsajko deleted the shuffle_ntuple branch 351 days ago
nsajko nsajko removed merge me

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone