add snippet for accumulate()

because I often forget the order of lambda's parameters