src/pylib/pystring/split/split

Source   Edit  

Procs

proc split(a: PyStr; sep = None; maxsplit = -1): PyList[PyStr] {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
proc split(a: PyStr; sep: StringLike; maxsplit = -1): PyList[PyStr]
Source   Edit  
proc splitlines(self: PyStr; keepends = false): PyList[PyStr] {....raises: [],
    tags: [], forbids: [].}
Source   Edit  

Iterators

iterator split(a: PyStr; sep = None; maxsplit = -1): PyStr {....raises: [],
    tags: [], forbids: [].}

with unicode whitespaces as sep.

treat runs of whitespaces as one sep (i.e. discard empty strings from result), while Nim's unicode.split(s) doesn't

Source   Edit  
iterator split(a: PyStr; sep: StringLike; maxsplit = -1): PyStr {.inline.}
Source   Edit