summary refs log tree commit diff stats
path: root/lib/pure/sugar.nim
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2020-09-22 13:08:36 +0200
committerGitHub <noreply@github.com>2020-09-22 13:08:36 +0200
commit11c377c1149a23657a7f0dd897866cb550ade8d1 (patch)
treedc3b5e26959b17950c70785b1999fd715969d8c0 /lib/pure/sugar.nim
parentab05e141c0ee298d42344e8a15101097e73ff2f9 (diff)
downloadNim-11c377c1149a23657a7f0dd897866cb550ade8d1.tar.gz
add `enumerate` macro (#15297)
* add `enumerate` macro

* address the comments

* put `enumerate` in its own module
Diffstat (limited to 'lib/pure/sugar.nim')
-rw-r--r--lib/pure/sugar.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/sugar.nim b/lib/pure/sugar.nim
index 0edcc5697..8bfc7b7ff 100644
--- a/lib/pure/sugar.nim
+++ b/lib/pure/sugar.nim
@@ -335,6 +335,7 @@ macro collect*(init, body: untyped): untyped {.since: (1, 1).} =
       call.add init[i]
   result = newTree(nnkStmtListExpr, newVarStmt(res, call), resBody, res)
 
+
 when isMainModule:
   since (1, 1):
     block dup_with_field: