Join Slack
Powered by
```inline fun Int.pow(x: Int): Int = toDouble().po...
# stdlib
g
gildor
06/05/2018, 10:58 AM
Copy code
inline fun Int.pow(x: Int): Int = toDouble().pow(x.toDouble()).toInt()
Or with any other receiver, argument or return value type But I don’t think that I need versions for all possible combinations on stdlib
👎 1
3
Views
Open in Slack
Previous
Next