fn copy_try_fold<T: Copy, Acc, R>(
    f: impl FnMut(Acc, T) -> R
) -> impl FnMut(Acc, &T) -> R