ref: ac2b69008a453fb8da4116636da2587ceb03db63
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("\"%s\"\n", sp[i]) ;; sp = std.strsplit("a,,b,c,,d", ",") for i = 0; i < sp.len; i++ std.put("\"%s\"\n", sp[i]) ;; sp = std.strsplit("a--b---b--c---c-d--d", "---") for i = 0; i < sp.len; i++ std.put("\"%s\"\n", sp[i]) ;; }