see i felt like an idiot after I suggeted that the return type from a statement be a Nothing (quickly rebuffed by this channel or the general channel as being a silly idea for a huge number of reasons), but then I stumble across the fact that
continue
as a keyword appears to have the type
Nothing
, since I can use it like this:
Copy code
for(whatever in things){
val leftSymbol = findMatch("optimization", consumedVars, whatever) ?: continue
//...
}