August 2018
Intermediate to advanced
366 pages
10h 14m
English
At the beginning of the recipe, we create a date for the first day of the requested month. Then we just move forward one day at a time until the month finishes and we set aside all days that match the requested weekday.
The weekdays go from one for Monday to seven for Sunday.
Once we have all the Mondays, Fridays, or whatever days of the month, we can just index the resulting list to grab only the ones we are actually interested in.