summaryrefslogtreecommitdiff
path: root/test/files/run/view-headoption.check
Commit message (Collapse)AuthorAgeFilesLines
* Views using methods implemented in terms of isE...Paul Phillips2011-06-131-0/+28
Views using methods implemented in terms of isEmpty (in particular, headOption and lastOption) were traversing the collection twice up to the nonEmpty element, because "if (isEmpty) None else Some(head)" means calling isEmpty separately from head. I overrode those methods in TraversableViewLike to avoid the second traversal. This leaves at least init and tail still in that boat, but they were getting too involved. How do I say "review by pool of reviewers", who can help set that up? In the meantime no review.