Implemented outplace differently (#12599)

* implemented sugar.outplace; refs #12550
* Different approach, allows for chaining
This commit is contained in:
Clyybber 2019-11-09 12:52:31 +01:00 • committed by Andreas Rumpf
commit 144ad36974
2 changed files with 50 additions and 0 deletions

View file

@ -36,6 +36,11 @@
`CountTable.take`
- Added `sugar.outplace` for turning in-place algorithms like `sort` and `shuffle` into
operations that work on a copy of the data and return the mutated copy. As the existing
`sorted` does.
## Library changes
- `asyncdispatch.drain` now properly takes into account `selector.hasPendingOperations`