|
|
Example with cond: leap-year? |
| The function leap-year?. The function returns whether a year y is a leap year.
For clarity we have programmed the function with a conditional. In this case,
we can express the leap year condition as a simple boolean expression using and and or. We refer to this
variation below, and we leave it to you to decide which version you prefer. |
To ease comparison, the original version is shown below the new version. |
| A complete program for handling of time |