1 unstable release
0.1.0 | Dec 17, 2022 |
---|
#18 in #unpack
4KB
73 lines
vec-unpack
Creates a Vec
containing the arguments.
vecu!
unpacks iterable variables marked with @
.
use vec_unpack::*;
let a = [2, 3];
let b = vecu![0, 1, @a, 4, 5];
assert_eq!(b, vec![0, 1, 2, 3, 4, 5]);