Bug 18501 – randomShuffle and partialShuffle should return their input argument

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-23T03:35:04Z
Last change time
2018-03-02T19:48:43Z
Keywords
pull
Assigned to
No Owner
Creator
Basile B.

Comments

Comment #0 by b2.temp — 2018-02-23T03:35:04Z
Currently randomShuffle() and partialShuffle() are void functions. As a consequence they cant be used as initializer.
Comment #1 by b2.temp — 2018-02-23T04:04:45Z
Comment #2 by github-bugzilla — 2018-03-02T19:48:42Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/b9196a976c7ffff5b5584290fd111261c507af14 fix issue 18501 - randomShuffle and partialShuffle should return their input argument https://github.com/dlang/phobos/commit/d9c94cbb612e8ae21db0e630d022df2455b7a04b Merge pull request #6211 from BBasile/issue-18501 fix issue 18501 - randomShuffle and partialShuffle should return their input argument merged-on-behalf-of: Jack Stouffer <[email protected]>