diff options
author | Miran <narimiran@disroot.org> | 2020-03-12 20:07:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-12 20:07:02 +0100 |
commit | 14b2354b7da36041ca046e60e833b5be9a04f1e4 (patch) | |
tree | 2e93e0a767eefec28a2ae16bb24fe49c63644888 /changelog.md | |
parent | f0cd50f9c48ee6bb585cd85615e5844a8082a8c1 (diff) | |
download | Nim-14b2354b7da36041ca046e60e833b5be9a04f1e4.tar.gz |
rename `lenTuple` and `lenVarargs` (#13639)
* rename 'lenTuple' to 'tupleLen' Rationale: `lenTuple` is a tuple consisting of lengths (e.g. `(1, 5, 0)`), `tupleLen` is a length of a tuple (e.g. `tupleLen((1, 5, 0) == 3`) * rename 'lenVarargs' to 'varargsLen' The same rationale as a previous commit. Consistency.
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 3cb9547f3..0fb99c6f4 100644 --- a/changelog.md +++ b/changelog.md @@ -66,7 +66,7 @@ - Added `sugar.collect` that does comprehension for seq/set/table collections. - 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, +- Added `typetraits.tupleLen` 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 - Added `os.normalizePathEnd` for additional path sanitization. |