This describes the implementation of the code below and is thus probably not necessary.  Would be good to replace with a docstring that says what it's for. e.g. "Return all subsequences of `inputs` of length `size`, preserving order."