Tiny since cleanup (#13286)
This commit is contained in:
parent
be795bbf1a
commit
fb94836bc7
4 changed files with 111 additions and 111 deletions
|
|
@ -81,7 +81,7 @@ macro lenTuple*(t: typedesc[tuple]): int {.since: (1, 1).} =
|
|||
## Return number of elements of `T`
|
||||
newLit t.len
|
||||
|
||||
when (NimMajor, NimMinor) >= (1, 1):
|
||||
since (1, 1):
|
||||
template get*(T: typedesc[tuple], i: static int): untyped =
|
||||
## Return `i`th element of `T`
|
||||
# Note: `[]` currently gives: `Error: no generic parameters allowed for ...`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue