Add string split --fields

This commit is contained in:
Jason Nader
2020-03-21 01:31:23 +09:00
committed by Fabian Homborg
parent a29bc127ce
commit 7cb1d3a646
4 changed files with 49 additions and 5 deletions

View File

@@ -88,6 +88,16 @@ string split "" abc
# CHECK: b
# CHECK: c
string split --fields=2 "" abc
# CHECK: b
string split --fields=2,3 "" abc
# CHECK: b
# CHECK: c
string split --fields=2,9 "" abc
# CHECK: b
seq 3 | string join ...
# CHECK: 1...2...3