Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: generic function

  • Implement a function that receives two u8 values and returns the bigger.
  • Implement a function that receives two f32 values and returns the bigger.
  • Implement a generic function that receives two values (of the same type) and returns the bigger.