0.0
No commit activity in last 3 years
No release in over 3 years
Ben Kiarie's Parity Gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 3.9
 Project Readme

parity-gem

interger_parity is a simple gem to split an array of integers into two arrays of odd and even integers.

Installation

To install interger_parity, add this line to your application's Gemfile:

gem 'interger_parity'

Then install as follows:

$ bundle install

Or install it directly using gem install:

$ gem install interger_parity

Usage

interger_parity adds a split_by_parity method to the Array class, and can be used as follows:

$ irb
>> require 'interger_parity'
>> [1, 2, 3, 4, 5, 6].split_by_parity)
=> [2, 4, 6], [1, 3, 5]

License

The gem is available as open source under the terms of the MIT License.