Skip to content

Add the `allTypes` accessor

Compare
Choose a tag to compare
@mattpolzin mattpolzin released this 05 Mar 17:09
9031b84

This accessor can be useful for generating logging based on the types a particular Poly allows.

let typeNames = Poly2<Int, Double, String>.allTypes
  .map { String(describing: $0) }
  .joined(separator: ", ")