Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use the file name to parse the day value #76

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tguichaoua
Copy link
Contributor

This PR introduces a new macro day_from_file_name which use the file name to create a Day value.
It is now possible to use advent_of_code::solution!() with no paremeter to use the file name.

Note: I only tested this on Windows and I'm not 100% sure of the robustnesss of this code.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant