the test suite is mostly green again
This commit is contained in:
parent
84806e6a61
commit
72f2a6e275
19 changed files with 46 additions and 67 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# All and any
|
||||
|
||||
template all(container, cond: expr): expr =
|
||||
template all(container, cond: expr): expr {.immediate.} =
|
||||
block:
|
||||
var result = true
|
||||
for it in items(container):
|
||||
|
|
@ -9,7 +9,7 @@ template all(container, cond: expr): expr =
|
|||
break
|
||||
result
|
||||
|
||||
template any(container, cond: expr): expr =
|
||||
template any(container, cond: expr): expr {.immediate.} =
|
||||
block:
|
||||
var result = false
|
||||
for it in items(container):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue