Skip to content

Instantly share code, notes, and snippets.

@teliosdev
Created March 22, 2014 00:16
Show Gist options
  • Save teliosdev/9699192 to your computer and use it in GitHub Desktop.
Save teliosdev/9699192 to your computer and use it in GitHub Desktop.
require 'oj'
tmp = ary = []
100_000.times { tmp[0] = []; tmp = tmp[0] }
puts Oj.dump(ary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment