takeLowestOneBit
Returns a number having a single bit set in the position of the least significant set bit of this Byte number, or zero, if this number is zero.
inline fun Byte.takeLowestOneBit(): Byte(source)
fun main() {
val byte: Byte = 0b1010.toByte() // binary: 00001010
val lowest = byte.takeLowestOneBit()
println("Lowest set bit: $lowest") // prints 2
}