Function brace_expand::brace_expand [−][src]
pub fn brace_expand(input: &str) -> Vec<String>
Expand description
Expand braces and return the set of results.
Example
let output = brace_expand("{hello,goodbye} {world,my {friends,colleagues}}");
assert_eq!(
output,
vec![
"hello world",
"hello my friends",
"hello my colleagues",
"goodbye world",
"goodbye my friends",
"goodbye my colleagues",
]
);