Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 648 Bytes

exercise.md

File metadata and controls

18 lines (14 loc) · 648 Bytes

Generics 101

Objectives

  1. Create a new type named CType which can be int, int32, uint, and uint32.
  2. Create a function to get two numbers of CType and return the summation of those two.
    1. A (provided CType)
    2. B (provided CType)
  3. Create a list of uintss with at least 5 elements init.
  4. Update your second step function to get variable number of CTypes and return the summation of all of them.
    1. Numbers (provided ... CType)
  5. Use your function to display the summation of your list elements.

Solution

Click here to view the solution