This is (should be) the exact equivalent of the Cilia code in Kotlin:

Note
In Kotlin Int and 42 are 32 bits wide, not 64 bits.
An Array has a fixed size.