Warning for out-of-place fold function