query
On this page

splitString

lib.strings.splitString

Docs pulled from | This Revision | 32 minutes ago


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

Inputs

sep

1. Function argument

s

2. Function argument

Examples

splitString usage example

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

Noogle also knows

Aliases