Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save ShawonAshraf/ff48d7e1108c9b7129270da4429ca18f to your computer and use it in GitHub Desktop.
swift-associated-type-generic 8
let adder = DoubleAdder()
print(adder.add(a: 34.67, b: 89.23)) // 123.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment