Function copy_fold

Source
fn copy_fold<T: Copy, Acc>(
    f: impl FnMut(Acc, T) -> Acc,
) -> impl FnMut(Acc, &T) -> Acc