I'm having a few instances of this in my code: ```...
# getting-started
b
I'm having a few instances of this in my code:
Copy code
return doubleArrayOf(base, tokenSort, tokenSet).max()!!.toInt()
And I'd like to get rid of the
!!
here, especially since I know this call will never return null. Any suggestions on how to do this?
d
In 1.4-M1 you can do
maxOf(base, tokenSort, tokenSet).toInt()
. Until 1.4 is out proper, using
!!
is fine, I guess
b
oh, I didn't know about that one! Thanks! Just a bit on a quest to remove most
!!
, that's all 🙂