nushell/src/parser/ast/parser_utils.rs
Yehuda Katz 2b876da56f Some function stuff
It's not done, but honestly it's getting too tedious. I will need to
rethink how I'm doing it.
2019-06-10 13:11:55 -07:00

6 lines
116 B
Rust

crate fn concat<T>(item: T, rest: Vec<T>) -> Vec<T> {
let mut out = vec![item];
out.extend(rest);
out
}