ClojureDocs

导航

命名空间

split

clojure.string

自 1.2 起可用
  • (split s re)
  • (split s re limit)
Splits string on a regular expression.  Optional argument limit is
the maximum number of parts. Not lazy. Returns vector of the parts.
Trailing empty strings are not returned - pass limit of -1 to return all.