saasbook

each_with_flattening.rb

Aug 15th, 2013
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.09 KB | None | 0 0
  1. [1, [2, 3], 4, [[5, 6], 7]].each_with_flattening { |s| print "#{s}," }
  2. >> 1, 2, 3, 4, 5, 6, 7
Add Comment
Please, Sign In to add comment