1

I am trying to understand some concepts of Swift and would like to understand this.

Say I have this protocol:

protocol P {}

What would be the difference between:

func f(_ p: P) { … }

And this?

func f<T: P>(_p: T) { … }

Thank you for your help

Another Dude
  • 1,204
  • 4
  • 15
  • 33

0 Answers0