Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(def parts (clojure.string/split s sep))
var parts = s.split(sep);
const parts = s.split(sep);
local function split(s,sep)
local parts={}
for sub in string.gmatch(s,"[^"..sep.."]+") do
table.insert(parts,sub)
end
return parts
end
@parts = split quotemeta($sep), $s;
parts = s.split(sep)
parts = s.split(sep)
let parts: Vec<&str> = s.split(sep).collect();
let parts = s.split(sep).collect::<Vec<&str>>();
let parts = s.split(sep);