|
|
|
|
|
by terhechte
2687 days ago
|
|
This is awesome. How did you figure this out? The documentation on `split` says: "The pattern can be a &str, char, or a closure that determines the split." But in your case it is an array of chars and it splits for each of them. I don't see this documented at all. |
|
[0] https://doc.rust-lang.org/std/str/pattern/trait.Pattern.html...