Skip to main content


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: https://mastodon.nl/@ErikSchouten73/109457026165486937

@ErikSchouten73

#cat #CatsOfMastodon #rust #RustLanguage #RustLang #RustCataStructures
This entry was edited (1 year ago)
⇧