Kit
object Kit
Collection of utilities.
Ported subset: the class-loading, listener-bag and IO helpers are JVM-only concerns and are not part of the port.
Functions
Link copied to clipboard
Throws RuntimeException to indicate failed assertion. The function never returns and its return type is RuntimeException only to be able to write throw Kit.codeBug() if plain Kit.codeBug() triggers unreachable code error.
Link copied to clipboard
Puts initialValue under key unless something is already there, and returns whichever value ended up in the map.
Link copied to clipboard
If character c is a hexadecimal digit, return accumulator * 16 plus the corresponding number. Otherwise return -1.