Compare commits

..

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

3 changed files with 1 additions and 18 deletions

3
.gitignore vendored
View File

@ -1,3 +0,0 @@
nimcache/
tlangutils
*.sw?

View File

@ -26,18 +26,4 @@ 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 =
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
while a:
b

View File

@ -1,6 +1,6 @@
# Package # Package
version = "0.4.0" version = "0.2.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"