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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!