renamed foldp to scan and reordered the combiner's arguments