0.0
No release in over a year
A small Array partition library (DO NOT USE IN PRODUCTION ENVIRONMENT, THIS IS ONLY FOR EDUCATIONAL PURPOSE)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

PartitionMagic

Welcome to PartitionMagic gem. This Library will help you to partition an array of inetegers to odd and even arrays. eg: [1,2,3,4,5,6].partition_even_odd(&:even?) [[2,4,6],[1,3,5]]

Install

gem install partition_magic

Usage

require 'partition_magic'