Created
September 2, 2024 13:47
-
-
Save nagat01/ddc459564626f6ed3179785d3371c7cc 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 (x: String) | |
| def +: (y: String) = s"$x + ($y)" | |
| def ++ (y: String) = s"$x + ($y)" | |
| @main def main = | |
| println("a" +: "b" +: "c") // a + (b + (c)) | |
| println("a" ++ "b" ++ "c") // a + (b) + (c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment