Higher-order function. Returns a predicate that compares a date with another date.
The type of entity to compare (e.g., year, month, day, etc.).
A function that takes a comparison date and returns a function that takes a date to compare.
Higher-order function. Returns a predicate that compares a date with another date.