You must log in or # to comment.
I never heard it called the Elvis operator! Thanks!
It was called Elvis back when it was a smiley
It’s because if you turn it 90° to the right, it looks like Elvis’ hair with two eyes underneath!
I saw it the other way, with the question mark as the curl of his lip.
Mfw I’m checking for null
?:)
Kotlin user spotted
(run { [email protected]?.apply { this.value === true } } == true) ?: if (([email protected] as? Boolean) != true) false else true
Same