My point is to extend Swift.print()
function or writing my own custom function ns_print()
which could be available from all modules without explicit import.
Of cause I saw some answers like
public func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {
let output = items.map { "\($0)" }.joined(separator: separator)
Swift.print(output, terminator: terminator)
}
But it works only inside module it was defined. I want to share this function across all existing modules.
Is it possible? Any help?