Compare commits
No commits in common. "main" and "0.3.0" have entirely different histories.
@ -26,18 +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 indexOf*(s, pred: untyped): int =
|
template doWhile(a, b: untyped): untyped =
|
||||||
var foundIdx = -1
|
|
||||||
var idx = 0
|
|
||||||
for it {.inject.} in items(s):
|
|
||||||
if pred:
|
|
||||||
foundIdx = idx
|
|
||||||
break
|
|
||||||
idx += 1
|
|
||||||
foundIdx
|
|
||||||
|
|
||||||
template doWhile*(a, b: untyped): untyped =
|
|
||||||
b
|
b
|
||||||
while a:
|
while a:
|
||||||
b
|
b
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.4.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