Kernel#iterate [![[version]](https://badge.fury.io/rb/iterate.svg)](http://badge.fury.io/rb/iterate) [![[ci]](https://github.com/janlelis/iterate/workflows/Test/badge.svg)](https://github.com/janlelis/iterate/actions?query=workflow%3ATest)
January 3, 2021 ยท View on GitHub
Iterate over one or more collections. It feels like an .each implemented as a control structure. It also makes it easier to iterate over multiple objects.
Usage
iterate [1,2], [3,4,5] do |e, f|
puts "#{e},#{f}"
end
# 1,3
# 2,4
# ,5
Setup
Add to your Gemfile:
gem 'iterate'
MIT License
Copyright (C) 2010-2016 Jan Lelis https://janlelis.com. Released under the MIT license.