Building off of yesterday’s post we can pass a block to zip().

>> [1,2,3].zip([4, 5]) { |k| puts "true" if k.include?(4) }
true
=> nil

:)

Leave a Reply

Your email address will not be published. Required fields are marked *