Adds toSet to create sets from iterables (#16276)

This commit is contained in:
Jason Beetham 2020-12-14 16:20:21 -07:00 • committed by GitHub
commit 1082d62b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

View file

@ -58,6 +58,8 @@
- `strscans.scanf` now supports parsing single characters.
- `strscans.scanTuple` added which uses `strscans.scanf` internally, returning a tuple which can be unpacked for easier usage of `scanf`.
- Added `setutils.toSet` that can take any iterable and convert it to a built-in set,
if the iterable yields a built-in settable type.
- Added `math.isNaN`.