Hullaballoonatic
11/09/2019, 8:46 PMval i = 2
-i // -2
~i // 0.5
val M = Matrix.ofRows(vectorOf(4, 7), vectorOf(2, 6))
// [ 4 7
// 2 6 ]
-M
// [ -4 -7
// -2 -6 ]
~M
// [ 0.6 -0.7
// -0.2 0.4 ]
karelpeeters
11/09/2019, 9:38 PM!
is still free!karelpeeters
11/09/2019, 9:38 PM1 /
too.Hullaballoonatic
11/09/2019, 9:39 PMHullaballoonatic
11/09/2019, 9:40 PM~
does actually mean inverse, tookarelpeeters
11/09/2019, 9:40 PM~
doesn't exist in Kotlin yet?Hullaballoonatic
11/09/2019, 9:41 PMHullaballoonatic
11/09/2019, 9:43 PMkarelpeeters
11/09/2019, 9:44 PM~=
is our !=
Hullaballoonatic
11/09/2019, 9:44 PMelizarov
11/11/2019, 7:42 AMa - b
is subtraction and -b
is an additive inverse. Following this logic, because a / b
denotes division, then multiplicative inverse should be denoted as /b
(operator unaryDiv
?).Hullaballoonatic
11/11/2019, 7:46 PMHullaballoonatic
11/11/2019, 7:52 PM~
in kotlin?Ky Leggiero
11/12/2019, 11:08 PM^
and |
were excluded; they'd prefer to keep bitwise operators as words to improve clarity. If you could (re-)define them yourself, I'd bet over 50% of Kotlin codebases would re-introduce these as the bitwise operators. Regardless of my feelsings on this, I don't think JetBrains wants that