Closed 01mf02 closed 4 months ago
This PR makes it possible to split a string s by sep via s / sep. Previously, the same could be achieved by s | split(sep).
s
sep
s / sep
s | split(sep)
Furthermore, the behaviour of split now matches jq, which returns [] when s is "". Before, split would return [""].
split
[]
""
[""]
This PR makes it possible to split a string
s
bysep
vias / sep
. Previously, the same could be achieved bys | split(sep)
.Furthermore, the behaviour of
split
now matches jq, which returns[]
whens
is""
. Before,split
would return[""]
.