Caleb B
07/09/2025, 11:55 PM"foo" in ("bar", "baz", "qux") instead of "foo" in listOf("bar, "baz", "qux") so it doesn't read as cluttered.
This one might actually be impossible since it would require fun (vararg T).contains, but it would be nice to do myList -= "x", "y", "z"CLOVIS
07/10/2025, 7:24 AMin because it can't be overridden directly (as you mentioned, it's contains), but it's possible with all the other ones that take the argument as a regular argumentCLOVIS
07/10/2025, 7:25 AMit would be nice to doThat would be very ambiguous:myList -= "x", "y", "z"
foo(myList -= "x", "y", "z")