Created
June 9, 2020 04:16
-
-
Save ha-yi/abdc6e95e793d22a06c687c2d23d602f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension StringExt on String { | |
operator -(String another) { | |
return this.replaceAll(another, ""); | |
} | |
} | |
void main() { | |
print("Hello World" - "World"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment