replaces pairs with keys and items; saves 8 bytes (#21319)
replace `pairs` with `keys` and `items`
This commit is contained in:
parent
17115cbc73
commit
8e53fba083
3 changed files with 5 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ proc undefSymbol*(symbols: StringTableRef; symbol: string) =
|
|||
# result = if isDefined(symbol): gSymbols[symbol] else: nil
|
||||
|
||||
iterator definedSymbolNames*(symbols: StringTableRef): string =
|
||||
for key, val in pairs(symbols):
|
||||
for key in keys(symbols):
|
||||
yield key
|
||||
|
||||
proc countDefinedSymbols*(symbols: StringTableRef): int =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue