diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-03-16 05:33:21 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-03-16 05:33:21 +0200 |
commit | 72f2a6e2755cdeaf1db85a9b119b694b9a2cb472 (patch) | |
tree | cb4dc5c42656a876337dbfce21e176d204ee35f6 /lib/pure/collections | |
parent | 84806e6a61da2641b6e8cb34800c874dc74b90af (diff) | |
download | Nim-72f2a6e2755cdeaf1db85a9b119b694b9a2cb472.tar.gz |
the test suite is mostly green again
Diffstat (limited to 'lib/pure/collections')
-rw-r--r-- | lib/pure/collections/sequtils.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim index b7a57ac0c..e3034d635 100644 --- a/lib/pure/collections/sequtils.nim +++ b/lib/pure/collections/sequtils.nim @@ -50,7 +50,7 @@ proc filter*[T](seq1: seq[T], pred: proc(item: T): bool): seq[T] = ## Returns all items in a sequence that fulfilled the predicate. accumulateResult(filter(seq1, pred)) -template filterIt*(seq1, pred: expr): expr = +template filterIt*(seq1, pred: expr): expr {.immediate.} = ## Finds a specific item in a sequence as long as the ## predicate returns true. The predicate needs to be an expression ## containing ``it``: ``filterIt("abcxyz", it == 'x')``. |