How to check generic type in Swift
Issue #74
When dealing with generic, you shouldn’t care about the types. But if you need, you can
1 | func isPrimitive<T>(type: T.Type) -> Bool { |
Issue #74
When dealing with generic, you shouldn’t care about the types. But if you need, you can
1 | func isPrimitive<T>(type: T.Type) -> Bool { |