mplatvoet
12/28/2015, 7:49 AMfilter
and map
etc always do lazy evaluations, so no matter whether something is an Iterable
or a Sequence
, it will be consistent behaviour. The behaviour is not dependent on the type of the receiver.
That does leave your concern about accidental reevaluations open as commonly seen with naive C# Linq programming. E.g. where some DB query is fired over and over again because someone forgot to create a snapshot of the results. However, I think a consistent API will make it easier to cope (educate) with such issues.