Question: HASKELL ONLY Design a function for leap year in Haskell. The function must implement Guards. The function will take in an integer and return either
HASKELL ONLY
Design a function for leap year in Haskell.
The function must implement Guards.
The function will take in an integer and return either true or false if its a leap year.
Leap years are evenly divisible by 4, except any year that is also evenly divisible by 100 unless that year is also evenly divisible by 400.
Example of what it should look like:
>leap 1996
True // what is returned
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
