diff --git a/langutils.nim b/langutils.nim index f07fba8..0972a9a 100644 --- a/langutils.nim +++ b/langutils.nim @@ -26,4 +26,7 @@ proc sameContents*[T](a1, a2: openArray[T]): bool = if not a2.anyIt(a == it): return false return true - +template doWhile(a, b: untyped): untyped = + b + while a: + b diff --git a/langutils.nimble b/langutils.nimble index d6e8d88..5cd1cde 100644 --- a/langutils.nimble +++ b/langutils.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.0" +version = "0.3.0" author = "Jonathan Bernard" description = "Language extensions (templates, macros) I commonly use." license = "MIT"