# File lib/sfl.rb, line 202 def flatten(depth = -1) if depth < 0 orig_flatten elsif depth == 0 self else inject([]) {|m, i| Array === i ? m + i : m << i }.flatten(depth - 1) end end