[][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

  • subject - The string to split into characters.
  • pattern - The pattern to match the separator.

Example

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