You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]]