Yeah, you can write extension vals on `Int` and `D...
# getting-started
d
Yeah, you can write extension vals on
Int
and
Double
or whatever. When doing math I frequently want a
.i
extension val which is a "cast-to-int" call. Usable like
someByte.i
, which keeps the casting from being too distracting in a bunch of mathematically oriented code.