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]]
gem install partition_magic
require 'partition_magic'
| Name | Name | Last commit date | ||
|---|---|---|---|---|