summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/SeqLike.scala
Commit message (Collapse)AuthorAgeFilesLines
* Altered a bunch of places which call hashCode t...Paul Phillips2010-05-211-1/+1
| | | | | | Altered a bunch of places which call hashCode to call ## instead. No review.
* Bug in lastIndexOfSeq. Closes #3455, no review.Paul Phillips2010-05-201-1/+1
|
* Removed more than 3400 svn '$Id' keywords and r...Antonio Cunei2010-05-121-1/+0
| | | | | Removed more than 3400 svn '$Id' keywords and related junk.
* Added sizeHints to operations where it made sense.Martin Odersky2010-05-101-0/+2
|
* StringBuilder no longer violates the Seq revers...Paul Phillips2010-04-241-2/+22
| | | | | | | | | | | | StringBuilder no longer violates the Seq reverse contract: it returns a new StringBuilder. The behavior formerly found in reverse (updates in place) is now available in reverseContents. Migration warning on reverse. Closes #3327. Also did some StringBuilder rewriting as per discussion with odersky. And took a cleaver to parts of the documentation to get to the good parts a little faster. Review by community.
* Updated documentationMartin Odersky2010-04-091-6/+5
|
* More cleanups in docs. Review by odersky.Aleksandar Pokopec2010-04-081-2/+2
|
* Another set of typos fixed.Aleksandar Pokopec2010-04-081-3/+3
|
* Some typos in collections. Review by odersky.Aleksandar Pokopec2010-04-081-1/+0
|
* As a brief diversion from real work, implemente...Paul Phillips2010-04-061-6/+6
| | | | | | | | | As a brief diversion from real work, implemented Damerau–Levenshtein and ran it on trunk to elicit obvious misspellings. Unfortunately they're mostly in places like compiler comments which real people never see, but I fixed them anyway. All those English Lit majors who peruse our sources are sure to be pleased. No review.
* Rearranging IndexedSeq/LinearSeq and related workMartin Odersky2010-04-051-2/+2
|
* More fun with -Xmigration.Paul Phillips2010-03-191-9/+1
| | | | | | | | | | | | | | | | | | to BufferLike (++ and similar now create a new collection.) Removed MapLikeBase. Annotated all the methods in mutable.{ Map, Set } which mutated in-place in 2.7 to note that they create new collections, and implemented same. At this point the only +/- like method which mutates in place which I am aware of is BufferLike.+ (see source comment for my observations.) Also tweaked some collections return types as necessitated by these changes, such as mutable.Set.clone() now returning "This" rather than mutable.Set[A]. References #3089, closes #3179. Review by odersky.
* Spring cleaning of collection libraries.Martin Odersky2010-03-191-2/+3
| | | | | | If people think some operations can be more lazy, please provide patches/do changes. Also brought proxies and forwarders into line.
* closes #3082, review by rytzMartin Odersky2010-02-261-2/+2
|
* Unique's seeming victory is overruled by commit...Paul Phillips2010-02-041-1/+1
| | | | | | Unique's seeming victory is overruled by committee. It is "distinct", not "unique", wherein lies the nub. No review.
* Striking while the iron is hot, renamed removeD...Paul Phillips2010-02-031-1/+1
| | | | | | | | | Striking while the iron is hot, renamed removeDuplicates to unique and deprecated removeDuplicates. The debate between distinct and unique was vigorous but unique won by a freckle. (Dark horse 'nub' was disqualified for taking performance enhancers.) The only thing which might need review is the choice of name, but review by odersky.
* It was pointed out that sorted and the 1-arg ve...Paul Phillips2010-02-021-36/+22
| | | | | | | | It was pointed out that sorted and the 1-arg version of sortWith are the same method, one with implicit argument, one without. Since sortWith has never exist in a release, we can un-overload it (which is a win anyway) and route everything through sorted. Review by moors.
* Took a swing at sorting out sorting.Paul Phillips2010-02-021-0/+13
| | | | | | | | | | | | rewriting the Sorting methods to accept Orderings and adding a sorted method to SeqLike, because we should all be pretty tired of writing ".sortWith(_ < _)" by now. I think it should be called "sort", not "sorted", but that refuses to coexist gracefully with the deprecated sort in List. Review by moors (chosen pretty arbitrarily, someone at epfl should review it but I don't know who deserves the nomination.)
* Fixed a number of faulty Scaladoc comments in l...Gilles Dubochet2010-01-261-3/+3
| | | | | | Fixed a number of faulty Scaladoc comments in library and compiler sources. No review.
* Fix for #2927. No review.Paul Phillips2010-01-201-6/+9
|
* more docs. noreview.Martin Odersky2009-12-151-1/+0
|
* lost of documentation and some small adjustment...Martin Odersky2009-12-141-8/+16
| | | | | lost of documentation and some small adjustments to collection classes.
* allowed $super variables in doc comment; some m...Martin Odersky2009-12-111-45/+136
| | | | | | allowed $super variables in doc comment; some more documentation of collection classes.
* refined doc comments generation; refactored cod...Martin Odersky2009-12-101-102/+116
| | | | | | | refined doc comments generation; refactored code into new Chars, DocStrings classes in util. Added some more doc comments to collection classes.
* new doc comment generation, including some new ...Martin Odersky2009-12-071-98/+227
| | | | | | new doc comment generation, including some new style doc comments in collection classes.
* Updated copyright notices to 2010Antonio Cunei2009-12-071-1/+1
|
* undeprecated containsSlice.Martin Odersky2009-11-261-7/+6
|
* Restoring an embarassingly large quantity of de...Paul Phillips2009-11-191-0/+7
| | | | | | Restoring an embarassingly large quantity of deprecated methods whose time had not yet come.
* More deprecation work.Paul Phillips2009-11-181-7/+0
| | | | | | since 2.7.2 (still except for lower case primitive type aliases) and removes every deprecated method which has never shipped in a release.
* Removed everything deprecated in 2.7.3 or earli...Paul Phillips2009-11-121-9/+0
| | | | | | Removed everything deprecated in 2.7.3 or earlier except the lower case primitive type aliases, plus associated fixes.
* Promotes reverseMap out of List into SeqLike as...Paul Phillips2009-11-111-4/+19
| | | | | | Promotes reverseMap out of List into SeqLike as discussed on scala-internals.
* Reverted r19466, as the decision is now thatAntonio Cunei2009-11-091-2/+2
| | | | | isDefinedAt should /not/ be in Function1
* Adds isDefinedAt to Function1. As a consequence,Antonio Cunei2009-11-091-2/+2
| | | | | | | | code that mixes in PartialFunction now have to define isDefinedAt as override. Fixes #2225.
* Some @experimental cleanups/removals I missed o...Paul Phillips2009-11-081-1/+0
| | | | | Some @experimental cleanups/removals I missed on the last pass.
* bit missingAntonio Cunei2009-11-041-1/+1
|
* Clarification to scaladoc comments for "sort".Antonio Cunei2009-11-041-3/+3
|
* fixed 2544, reimplemented SeqLike.indexWhere, s...Tiark Rompf2009-10-301-26/+15
| | | | | | fixed 2544, reimplemented SeqLike.indexWhere, segmentLength and lengthCompare in terms of iterators instead of foreach and breaks
* changed standard library so that it does not re...Martin Odersky2009-10-281-1/+2
| | | | | | | | changed standard library so that it does not rely in scala package object in initial bootstrap of Predef. Disabled reading scala package during that bootstrap. This is an attempt to solve the cyclic reference errors in #2501.
* Made sortBy unexperimental.Paul Phillips2009-10-221-7/+5
|
* Added (a variation on) jorge ortiz's sortBy to ...Paul Phillips2009-10-221-4/+23
| | | | | | Added (a variation on) jorge ortiz's sortBy to SeqLike, added docs and test case. Added map to Ordering.
* added methods updated +: :+ to SeqLikeTiark Rompf2009-10-211-1/+1
|
* Fixed #2429.Martin Odersky2009-10-211-3/+5
|
* renamed BuilderFactory[El, To, From] -> CanBuil...Adriaan Moors2009-10-211-6/+6
| | | | | | | | | | | | | | | | | | | | | renamed BuilderFactory[El, To, From] -> CanBuildFrom[From, El, To] and added apply() overload to create collections from scratch generically added def apply() overload to BuilderFactory so that we can also create collections from scratch generically (see test test/files/pos/collectGenericCC.scala) renaming: - BuilderFactory[El, To, From] -> CanBuildFrom[From, El, To] bulk type-param reordering using: s/CanBuildFrom\[\s*([^,()\s]*)\s*,(\s+[^\s,()]*)\s*,\s+([^\s,()]*)\s*\]/CanBuildFrom[$3, $1,$2]/ some argument lists got mixed up because they contained 4 comma's... - builderFactory -> canBuildFrom removed explicit implicit value in DocDriver that was renamed renamed collection/generic/BuilderFactory.scala -> collection/generic/CanBuildFrom.scala tested with clean build using ant strap.done -- everything went well on my machine
* added methods updated +: :+ to SeqLikeTiark Rompf2009-10-141-5/+37
|
* Sequence->SeqMartin Odersky2009-10-021-0/+597