split

.split string:{String} separator:{String = ", "} -> Iterable<String>

Splits a string into a collection of its parts, delimited by separator.

.split {A, B, C}::foreach
The part is .1
.var {date} {2026-10-24}

.date::split separator:{-}::first <!-- 2026 -->

Return

a new collection containing the parts of string, in order. An empty string produces an empty collection

Parameters

string

string to split

separator

string that delimits the parts. Defaults to ,

Chaining

This function is designed to be chained with other function calls:
String::split separator:{String} -> Iterable<String>