getAndSet

fun getAndSet(index: Long): Boolean