3 ms·
series2 = data.series .map { |s| s.map(&:to_f) } .each_slice(2).to_a Should we use data.series.lazy for better memo
by revskill 4y ago
series2 = data.series
.map { |s| s.map(&:to_f) }
.each_slice(2).to_a
Should we use data.series.lazy for better memory consumption ?