RubyGems Navigation menu

array_groups 0.0.7

[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 "parts". Great for threading long arrays or making them rectanglar.

Gemfile:
=

installieren:
=

Versionen:

  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)
Zeige alle Versionen (10 total)

Besitzer:

Autoren:

  • Benjamin Zagorski

SHA 256-Prüfsumme:

=

Downloads insgesamt 26.215

Für diese Version 1.793

Version veröffentlicht:

Lizenzen:

k.A.

Erforderliche Ruby-Version: >= 0

Links: