# Simplified code from the_one() method: ret = EmptyBox() something.each(F(elt) { if predicate(elt) { ret throws TheOneFail("the_one() had more than one match") ret = FullBox(elt) } }) not(ret) throws TheOneFail("the_one() had no matches") ret.val # Has the value