You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2019. It is now read-only.
let slice = "\"1,2,3,,4\"";
let result: Vec<i32> = slice[1 .. slice.len()-1]
.split(',')
.filter(|e| e.len() > 0) // methods up to here have info, but not the later ones.
.map(|x| x.parse().map_err(|_| "parse error"))
.collect::<Result<_,_>>()
.unwrap()