RubyGems Navigation menu

array_groups 0.0.10

[1,2,3,4,5].in_groups(2) => [ [1,2,3], [4,5] ] ------------------------------------------------------- [1,2,3,4,5].in_groups_of(2) => [ [1,2], [3,4], [5] ] ------------------------------------------------------- [1,2,3,4,5].in_groups_of(2, nil_fill: true) => [ [1,2], [3,4], [5,nil] ] ------------------------------------------------------- This allows the grouping of an array into different "groups". Great for threading long arrays by group or making them rectangular.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.0.10 - May 03, 2019 (4.5 KB)
  2. 0.0.9 - April 13, 2019 (4.5 KB)
  3. 0.0.8 - April 12, 2019 (4.5 KB)
  4. 0.0.7 - April 12, 2019 (4.5 KB)
  5. 0.0.6 - April 12, 2019 (4.5 KB)
Show all versions (10 total)

Owners:

Authors:

  • Benjamin Zagorski

SHA 256 checksum:

c5e267b7cf7021b2737fe262dcbe2e7db9a2d0ded6554d1517fbb60adde7995d

Total downloads 25,184

For this version 2,973

Licenses:

N/A

Required Ruby Version: >= 0

Links: