return types must not be Natural for reasons I won't outline here
This commit is contained in:
parent
d01fca974d
commit
8ee0771b5a
1 changed files with 1 additions and 1 deletions
|
|
@ -601,7 +601,7 @@ template keepItIf*(varSeq: seq, pred: untyped) =
|
||||||
setLen(varSeq, pos)
|
setLen(varSeq, pos)
|
||||||
|
|
||||||
since (1, 1):
|
since (1, 1):
|
||||||
template countIt*(s, pred: untyped): Natural =
|
template countIt*(s, pred: untyped): int =
|
||||||
## Returns a count of all the items that fulfilled the predicate.
|
## Returns a count of all the items that fulfilled the predicate.
|
||||||
##
|
##
|
||||||
## The predicate needs to be an expression using
|
## The predicate needs to be an expression using
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue