in reply to looking for a good idiom: return this if this is true
I haven't seen this among the replies, so here it goes
It's very similar to the already-mentioned$_ = thatroutine() and return $_;
I like both roughly equally.return $_ if $_ = thatroutine();
the lowliest monk
|
|---|