typetraits: fixes #6454; genericParams; added lenTuple; added tuple type get (#13064)

This commit is contained in:
Timothee Cour 2020-01-09 23:51:37 -08:00 • committed by Andreas Rumpf
commit 4cd86c0842
4 changed files with 60 additions and 4 deletions

View file

@ -47,6 +47,10 @@
- Added `sugar.capture` for capturing some local loop variables when creating a closure.
This is an enhanced version of `closureScope`.
- Added `typetraits.lenTuple` to get number of elements of a tuple/type tuple,
and `typetraits.get` to get the ith element of a type tuple.
- Added `typetraits.genericParams` to return a tuple of generic params from a generic instantiation
## Library changes
- `asyncdispatch.drain` now properly takes into account `selector.hasPendingOperations`