any idiomatic way to do this? ```functionThatRetur...
# advent-of-code
m
any idiomatic way to do this?
Copy code
functionThatReturnsNullable() ?: doOnNull() followed by continue
e
Copy code
functionThatReturnsNullable() ?: 
run { doOnNull(); continue }
m
technically I could not remove and peek instead
but I might need this way of coding on a later moment
e
m
I think I need to puke
e
Copy code
for (scanner in generateSequence { scanners.removeFirstOrNull() }) {
    findOrientationThatFits()?.run {
        ...
    } ?: scanners.add(scanner)
}