in any event, implement it yourself ``` infix fun ...
# announcements
s
in any event, implement it yourself
Copy code
infix fun <http://Int.cat|Int.cat>(other: Int): Int = (toString() + other.toString()).toInt()
🐱 1
h
What operator is cat?
b
🧌
He meant
plus
lol which is revealed a short bit ago in their conversation https://kotlinlang.slack.com/archives/C0922A726/p1543533094018100
s
well, I thought he meant “plus”, but really he wanted some kinda wacky “concatenate and int-ify” function that cast ints to strings, concatenated them, then converted the string number to an
Int
telling him to implement/overload
plus
would betray the notion of addition, so no point in calling it plus
(also you can’t really have an extension that overloads a member function with the exact same signature, the member function always wins. though technically it’d be shadowing and not overloading)
since he called it “concatenate”, I went with the *nix shortening of concatenate ->
cat