Swift print to sout

This commit is contained in:
Zach Eriksen 2021-03-15 20:42:33 -05:00
parent b33472560a
commit 4cff143829
1 changed files with 4 additions and 4 deletions

View File

@ -8,11 +8,11 @@
public protocol Printable { }
public extension Printable {
func print() {
Swift.print(self)
func sout() {
print(self)
}
func print(modifiedString: (Self) -> String) {
Swift.print(modifiedString(self))
func sout(modifiedString: (Self) -> String) {
print(modifiedString(self))
}
}