Filter and map at once!

Filter and map at once! get_crm_contacts .filter { _1[:is_blocked] } •map { _1[:email] } get_crm_contacts.filter_map { _1[:is_blocked] and _l[:email] } Why do in two steps what you can do in one? Available since #ruby 2.7

Responses