Manipulating nested arrays in Ruby is a pain and there doesn't seem to be any general purpose solutions (i.e. not math-oriented) available so here is a shot at it.

Required Ruby Version

>= 0

Authors

Sylvain Leclercq

Versions

  1. 0.0.1.1 November 02, 2016 (6.5 KB)
  2. 0.0.1 November 02, 2016 (6.5 KB)

SHA 256 checksum