Sha256: 1af798119da96d8746e186cb2d7f932fbe97fe3b8d166073fe6404cc8baf2b16

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

# 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)

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

```ruby
iterate [1,2], [3,4,5] do |e, f|
  puts "#{e},#{f}"
end

# 1,3
# 2,4
# ,5
```


## Setup

Add to your `Gemfile`:

```ruby
gem 'iterate'
```


## MIT License

Copyright (C) 2010-2016 Jan Lelis <https://janlelis.com>. Released under the MIT license.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iterate-1.0.1 README.md