add collect with infered init, refs #16078 fixes #14332 (#16089)

* changelog
* add testcase, fixes #14332
This commit is contained in:
Antonis Geralis 2020-12-03 21:32:18 +02:00 • committed by GitHub
commit 808ab7eae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 88 additions and 37 deletions

View file

@ -22,6 +22,9 @@
literals remain in the "raw" string form so that client code can easily treat
small and large numbers uniformly.
- Added an overload for the `collect` macro that inferes the container type based
on the syntax of the last expression. Works with std seqs, tables and sets.
- Added `randState` template that exposes the default random number generator.
Useful for library authors.