PlusPlus: a workout tracker for incrementing yourself

  1. // PlusPlus
  2. // A workout tracker for
  3. // incrementing yourself.
  4. postfix operator ++
  5. postfix func ++ (n: inout Int) {
  6. n += 1
  7. }
  8. postfix func ++ (you: inout Human) {
  9. you.level++
  10. }
  11. you++
  12. // Email dave@dav.ec to join
  13. // the TestFlight.