def slice(f, m, n, j=0): """Take a continuous subsequence of terms of `f`. """ return f.per(dmp_slice_in(f.rep, m, n, j, f.lev, f.dom))