Published: 14 Aug 2024 |

Description: view |

Slideshow: view |

All slides : view |

Download: pdf (for a perfect viewing experience - see the slides as they are meant to be seen) |

Speakerdeck: slideshow
- 0 views - uploaded 14 Aug 2024 |

Slideshare: slideshow
- 0 views - uploaded 14 Aug 2024 |

Scala Code: github repo |

Page Impressions: 1358 (since Feb 2024) |

PDF Downloads: 97 (since Feb 2024) |

10 |
18 |
9 |
(since Feb 2024) |

- This deck is about the leap_year function shown in https://x.com/Iceland_jack/status/1802659835642528217, i.e.
- leap_year :: Integral a => a -> Bool
- leap_year = liftA2 (>) (gcd 80) (gcd 50)
- Given an integer representing a year, the function returns a boolean indicating if that year is a leap year.
- See why the Function Applicative allows the leap_year function to be defined as shown in that tweet.