#unpack #vec #create #containing #arguments #iterable #variables

vec-unpack

Creates a Vec containing the arguments. vecu! unpacks iterable variables marked with @.

1 unstable release

0.1.0 Dec 17, 2022

#18 in #unpack

MIT license

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]);

No runtime deps