Remove expr/stmt (#5857)

This commit is contained in:
Arne Döring 2017-07-25 09:28:23 +02:00 • committed by Andreas Rumpf
commit 000b8afd26
168 changed files with 497 additions and 529 deletions

View file

@ -1,6 +1,6 @@
# All and any
template all(container, cond: expr): expr {.immediate.} =
template all(container, cond: untyped): bool =
block:
var result = true
for it in items(container):
@ -9,7 +9,7 @@ template all(container, cond: expr): expr {.immediate.} =
break
result
template any(container, cond: expr): expr {.immediate.} =
template any(container, cond: untyped): bool =
block:
var result = false
for it in items(container):