lib/active_warehouse/aggregate/pipelined_rolap_aggregate.rb
# The accumulation is a bit messy but it works ;-)
The accumulation is a bit messy but it works ;-)
The accumulation is a bit messy but it works ; - )
def sequence(i = 0, *a)
    return [a] if i == size
    self[i].map {|x|
      sequence(i+1, *(a + [x]))
    }.inject([]) {|m, x| m + x}
  end
def sequence ( i = 0 , * a ) return [ a ] if i == size self [ i ] . map { | x | sequence ( i + 1 , * ( a + [ x ] ) ) } . inject ( [ ] ) { | m , x | m + x } end
The accumulation is a bit messy but it works ;-)
The accumulation is a bit messy but it works ; - )
i
<not_specific>
a
<not_specific>