mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
return types must not be Natural for reasons I won't outline here
This commit is contained in:
@@ -601,7 +601,7 @@ template keepItIf*(varSeq: seq, pred: untyped) =
|
||||
setLen(varSeq, pos)
|
||||
|
||||
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.
|
||||
##
|
||||
## The predicate needs to be an expression using
|
||||
|
||||
Reference in New Issue
Block a user