add a snippet for Ruby: Enumerable#detect