• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Generalized max function (snippets, 6c31925)

Created 9/12/2007, updated 3/5/2024
  • snippets

Based on understandings gained in Exercise 1.15, add a new "max''" function that works for any type in the Ord class, not just for Int types.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Solution for Exercise 1.17 (snippets, 3b62460)
Add solution for Exercise 1.15 (snippets, e370df9) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).