Peeking inside a reduce expression with a lambda statement and an accumulator