ref: 3df8885d396e1bc36fe25a329bc4e63400126ecf
dir: /test/strsplit.myr/
use std const main = { var i var sp sp = std.strsplit("a,b,c,d", ",") for i = 0; i < sp.len; i++ std.put("\"{}\"\n", sp[i]) ;; std.slfree(sp) sp = std.strsplit("a,,b,c,,d", ",") for i = 0; i < sp.len; i++ std.put("\"{}\"\n", sp[i]) ;; std.slfree(sp) sp = std.strsplit("a--b---b--c---c-d--d", "---") for i = 0; i < sp.len; i++ std.put("\"{}\"\n", sp[i]) ;; std.slfree(sp) }