When is Filter a list, and when is it a tuple?