It seems that while we can do certain optimization based on the known size of the resulting sequence after Skip is applied, but not running selectors on skipped items during enumeration is observable and could be unexpected.
The following queries seem to have subtly different meaning -
list.Select(s).Skip(10)
list.Skip(10).Select(s)
It seems that while we can do certain optimization based on the known size of the resulting sequence after
Skipis applied, but not running selectors on skipped items during enumeration is observable and could be unexpected.The following queries seem to have subtly different meaning -
list.Select(s).Skip(10)list.Skip(10).Select(s)