let four_cats: Vec<(Cat, Color)> = vec![rand::random::(Cat, Color); 4];<br>let cats = [vec![rand::random::(Cat, Color); 2], four_cats.clone(), four_cats, vec![rand::random::(Cat, Color)]].into_iter().flatten().collect::<Vec<_>>();<br>
Ahhh, this one was tricky 😅
Source: mastodon.nl/@ErikSchouten73/10…
#cat #CatsOfMastodon #rust #RustLanguage #RustLang #RustCataStructures
This entry was edited (1 year ago)