Macro input

Source
input!() { /* proc-macro */ }
Expand description

Returns the puzzle input as a String: input!().

This must be used within a function annotated with #[aocd(year, day)].

If you provide a file name in the function annotation, it will read the input from that file instead of fetching it from the website. This can be useful for testing with a smaller input, like the example input given in the puzzle description.