Skip to content

Instantly share code, notes, and snippets.

@ha-yi
Last active May 30, 2020 06:38
Show Gist options
  • Save ha-yi/272e04eae0fc46606a8c55fad707940c to your computer and use it in GitHub Desktop.
Save ha-yi/272e04eae0fc46606a8c55fad707940c to your computer and use it in GitHub Desktop.
extension StringExt on String {
operator -(String another) {
return this.replaceAll(another,"");
}
}
main() {
print("Hello" - "l");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment