Say I have some extension in module A
:
public extension String {
func foo() { ... }
}
In module B
, I would like to sometimes import individual extensions (or files), just like I can import struct
, import enum
, ...
Neither of
import struct A.String
import func A.String.foo
works, and there does not seem to be a keyword geared towards extensions.
Is this possible? How?