Guest User

Untitled

a guest
Feb 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. num_cols = 3
  2. a.in_groups_of((a.length/num_cols).ceil, nil).transpose.each do |row|
Add Comment
Please, Sign In to add comment