https://kotlinlang.org logo
l

LeoColman

01/13/2020, 11:54 PM
Brian, I think what you want is something like (pseudo code) collection.ensureOne { it.matches.foo }.andThenWithIt { it.bar }