query
On this page

splitString

lib.splitString



Cut a string with a separator and produces a list of strings which were separated by this separator.

Example

splitString "." "foo.bar.baz"
=> [ "foo" "bar" "baz" ]
splitString "/" "/usr/local/bin"
=> [ "" "usr" "local" "bin" ]

Arguments

  • [sep]
  • [s]
(lib.strings.splitString)

Noogle also knows

Aliases