user-defined accumulator function supported(closure, rec accumulator not supported.)