Skip to content

Instantly share code, notes, and snippets.

@ShawonAshraf
Created July 3, 2019 14:29
Show Gist options
  • Select an option

  • Save ShawonAshraf/2cb48ca6ea4fa579ed32c6d54b854f11 to your computer and use it in GitHub Desktop.

Select an option

Save ShawonAshraf/2cb48ca6ea4fa579ed32c6d54b854f11 to your computer and use it in GitHub Desktop.
swift-associated-type-generic 3
let adder = IntAdder()
print(adder.add(a: 55, b: 45)) // prints 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment