[][src]Function voca_rs::split::split

pub fn split<'a>(subject: &'a str, pattern: &str) -> Vec<&'a str>

Splits subject into an array of chunks by separator.

Arguments

Example

use voca_rs::*;
split::split("rage against the dying of the light", "");
// => ["rage", "against", "the", "dying", "of", "the", "light"]
use voca_rs::Voca;
"rage against the dying of the light"._split("");
// => ["rage", "against", "the", "dying", "of", "the", "light"]