Is there some reason that `splitWhitespace()` from `strutils` lacks `maxsplit` 
parameter? It is implemented there as 
    
    
    iterator splitWhitespace*(s: string): string =
      ## Splits at whitespace.
      oldSplit(s, Whitespace, -1)
    

using `oldSplit()` that **does have** this parameter. So, why not
    
    
    iterator splitWhitespace*(s: string, maxsplit: int = -1): string =
      ## Splits at whitespace.
      oldSplit(s, Whitespace, maxsplit)
    

? 

Reply via email to