Add doWhile template.
This commit is contained in:
parent
af47c13e7e
commit
2a052ac96b
@ -26,4 +26,7 @@ proc sameContents*[T](a1, a2: openArray[T]): bool =
|
|||||||
if not a2.anyIt(a == it): return false
|
if not a2.anyIt(a == it): return false
|
||||||
return true
|
return true
|
||||||
|
|
||||||
|
template doWhile(a, b: untyped): untyped =
|
||||||
|
b
|
||||||
|
while a:
|
||||||
|
b
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Language extensions (templates, macros) I commonly use."
|
description = "Language extensions (templates, macros) I commonly use."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user