Compare commits
No commits in common. "main" and "0.2.0" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +0,0 @@
|
|||||||
nimcache/
|
|
||||||
tlangutils
|
|
||||||
*.sw?
|
|
@ -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
|
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user