You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be a great addition if we could generate values and have them cloned:
// This is day 2, 2019#[aoc_generator(day2)]pubfngen(input:&str) -> Vec<isize>{
input
.split(",").map(|s| s.trim()).flat_map(|s| s.parse::<isize>()).collect()}#[aoc(day2, part1)]#[clone]pubfnday2_impl1(input:Vec<isize>) -> isize{unimplemented!()}
The text was updated successfully, but these errors were encountered:
This should be timed in the benchmark as well, shouldn't it? If so, I'm not sure this is an improvement over just using let input = input.clone() on the first line.
It'd be a great addition if we could generate values and have them cloned:
The text was updated successfully, but these errors were encountered: