[a-zA-Z0-9_]
and it would mean a [] inside a [] time python day7.py ryozuki7
229
6683
________________________________________________________
Executed in 71.08 millis fish external
&String
as parameter, pass &str
. it allows for strictly more types to be passed&Vec<Type>
→ &[Type]
(edited)&String
has the same amount of lifetime parameters as &str
, noneprintln!("count {}", count(&bags, &"shiny gold".to_owned()) - 1);
→ println!("count {}", count(&bags, "shiny gold") - 1);
for one less allocation &"shiny gold".to_owned()
→ "shiny gold"
_
or _q
BTreeMap
struct in crate std
.$m{$a} = ...
makes $m a hashmap...f