Compare commits

..

No commits in common. "main" and "0.3.0" have entirely different histories.
main ... 0.3.0

2 changed files with 2 additions and 13 deletions

View File

@ -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

View File

@ -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"