summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #2535. Review by community.Aleksandar Pokopec2010-04-061-32/+62
|
* Optimized toArray for ArrayOps and WrappedArrays.Martin Odersky2010-04-065-6/+35
|
* As a brief diversion from real work, implemente...Paul Phillips2010-04-0640-64/+64
| | | | | | | | | 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.
* Made Vector the standard impl of IndexedSeq.Martin Odersky2010-04-052-3/+3
|
* Rearranging IndexedSeq/LinearSeq and related workMartin Odersky2010-04-0534-899/+707
|
* [scaladoc] Considerably reduced size of documen...Gilles Dubochet2010-04-031-1/+1
| | | | | | | | [scaladoc] Considerably reduced size of documentation by not generating certain strange inner classes. Scaladoc is much much faster (more than 10x on library); not exactly clear why. Protected members are printed in documentation and displayed on demand. Review by malayeri.
* closes #3242. review by community.Tiark Rompf2010-04-021-3/+4
|
* closes #3203, overriding more of the Traversabl...Tiark Rompf2010-03-311-51/+88
| | | | | | | closes #3203, overriding more of the TraversableLike methods. also tightened access privileges to internal fields and methods. review by community.
* Noticed that the implementation of toArray Iter...Paul Phillips2010-03-301-3/+6
| | | | | | | Noticed that the implementation of toArray Iterator had acquired via TraversableOnce called "size" to allocate the array, leaving a nice empty iterator to actually populate it. Fixed. No review.
* TraversableOnce. Review by odersky.Paul Phillips2010-03-2742-1142/+730
|
* Fix for #3204. No review.Paul Phillips2010-03-262-1/+3
|
* Renamed partialMap to collect.Paul Phillips2010-03-247-17/+14
| | | | | | | | | method on Iterator called collect which I had to remove, because if the method is overloaded it puts a bullet in the type inference, an intolerable result for a function which takes a partial function as its argument. I don't think there's much chance of confusion, but I put a migration warning on collect just in case. No review.
* new readme. no review.Martin Odersky2010-03-241-9/+9
|
* Reverted a presumably unintentional reincarnati...Paul Phillips2010-03-241-16/+0
| | | | | | | Reverted a presumably unintentional reincarnation of old predef (these functions are in ScalaRunTime now.) Review by odersky just in case there was a secret plan.
* Fixes problematic equality of Enumeration values.Martin Odersky2010-03-241-2/+2
|
* Fixes problematic equality of En umeration values.Martin Odersky2010-03-241-0/+16
|
* Fixed the serialization test.Philipp Haller2010-03-241-15/+23
|
* Fix and test case for #3169.Paul Phillips2010-03-231-2/+5
|
* Added some documentation to the methods in Pred...Paul Phillips2010-03-231-3/+49
| | | | | | Added some documentation to the methods in Predef which utilize @elidable. No review.
* Although it was working fine, a test case for @...Paul Phillips2010-03-231-2/+2
| | | | | | Although it was working fine, a test case for @elidable to make sure that state of affairs continues. No review.
* Fixes #3186. Closes #2214.Philipp Haller2010-03-231-6/+35
|
* Scala signature is generated as an annotation (...Gilles Dubochet2010-03-233-3/+25
| | | | | | | | | | | | | Scala signature is generated as an annotation (that is accessible through Java reflection). - compiler generates all pickled Scala signatures as annotations to class files. - compiler can read class files with signature as annotations or old-style signatures as attributes. - Scalap has also been updated to new signatures (contributed by Ilya Sergey: thanks a lot). - FJBG updated to allow entering constant pool strings as byte arrays. - ByteCodecs decode method returns the length of the decoded array. Review by ilyas. Already mostly reviewed by odersky.
* You try to get away with one little line of unc...Paul Phillips2010-03-231-1/+1
| | | | | | | You try to get away with one little line of uncompiled patch... reverting last patch since I'm too tired to see why it broke the build. No review.
* Fix for #3204.Paul Phillips2010-03-231-2/+2
| | | | | | | that can arise when return types of public facing methods are inferred. We eventually need some mechanism to make such issues easier to avoid. No review.
* Noticed we still have a bunch of collection cla...Paul Phillips2010-03-229-39/+36
| | | | | | | | Noticed we still have a bunch of collection classes which are rather lacking. Did some integration, added some companion objects. Not thrilled with the overall picture in there, there's still a lot which should be done. Updated a deprecation message, closes #3202. No review.
* Consistency work on Addable and Growable.Paul Phillips2010-03-2210-67/+88
| | | | | | | Seq-derived classes. Creating GrowingBuilder to complement AddingBuilder on classes with += but not +. Fixed some inconsistencies I came across in the process. No review.
* Half-disabled productElementName until I have t...Paul Phillips2010-03-191-0/+3
| | | | | | | Half-disabled productElementName until I have time to reimplement it more to martin's liking. ("Half" because full disabling is not possible until starr has forgotten about it.) No review.
* Returning to the thrilling world of equality an...Paul Phillips2010-03-193-66/+96
| | | | | | | | Returning to the thrilling world of equality and hashCodes now that Any.## is a reality. Moved the hash functions from Predef to ScalaRunTime, and made what appears to be an optimization to equals by not losing the result of an instanceof test. Review by community.
* More fun with -Xmigration.Paul Phillips2010-03-1912-178/+145
| | | | | | | | | | | | | | | | | | 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.
* new version of decode that does not need a length.Martin Odersky2010-03-191-42/+10
|
* Spring cleaning of collection libraries.Martin Odersky2010-03-1914-137/+307
| | | | | | If people think some operations can be more lazy, please provide patches/do changes. Also brought proxies and forwarders into line.
* Closes #2827. Review by community.Philipp Haller2010-03-191-16/+23
|
* Reverse didn't work for empty ranges.Aleksandar Pokopec2010-03-181-1/+1
|
* closes #3112. no review.Tiark Rompf2010-03-161-12/+17
|
* Fixes infinite streams in #3091. No review.Aleksandar Pokopec2010-03-161-0/+10
|
* Fixes #3091. Review by community.Aleksandar Pokopec2010-03-161-3/+7
|
* Changed `!=` to `ne` for #3086. No review.Aleksandar Pokopec2010-03-161-13/+13
|
* Fixes #3091. Review by community.Aleksandar Pokopec2010-03-151-0/+40
|
* new immutable.HashSet. review by community.Tiark Rompf2010-03-151-108/+313
|
* Fixes #3086. Review by community.Aleksandar Pokopec2010-03-151-13/+13
|
* Fixes #3132. No review necessary.Aleksandar Pokopec2010-03-154-9/+19
|
* Fixes #3155. No review is necessary.Aleksandar Pokopec2010-03-151-0/+2
|
* Leveraged -Xmigration to burn off some warts wh...Paul Phillips2010-03-1512-56/+62
| | | | | | | | | | | | | | | | | | | | | | | | | Leveraged -Xmigration to burn off some warts which arose in the new collections. Warnings put in place for behavioral changes, allowing the following. 1) Buffers: create new collections on ++ and -- like all the other collections. 2) Maps: eliminated never-shipped redundant method valuesIterable and supplied these return types: def keys: Iterable[A] def keysIterator: Iterator[A] def values: Iterable[B] def valuesIterator: Iterator[B] def keySet: Set[A] I concluded that keys should return Iterable because keySet also exists on Map, and is not solely in the province of Maps even if we wanted to change it: it's defined on Sorted and also appears in some Sets. So it seems sensible to have keySet return a Set and keys return the more general type. Closes #3089, #3145. Review by odersky.
* improved immutable HashMap iterator.Tiark Rompf2010-03-141-31/+101
|
* More support code for the big partest patch I'm...Paul Phillips2010-03-131-0/+1
| | | | | | More support code for the big partest patch I'm working on to finally finish classpaths for good. No review.
* Improved version where bumping and zero-encodin...Martin Odersky2010-03-131-38/+9
| | | | | Improved version where bumping and zero-encoding are rolled into one.
* Added an object to mangle byte arrays into Java...Martin Odersky2010-03-121-0/+269
| | | | | | Added an object to mangle byte arrays into Java classfile's version of UTF8.
* Partially reverted r21018.Martin Odersky2010-03-112-29/+29
|
* implemented handling of 32-bit collisions in im...Tiark Rompf2010-03-111-6/+60
| | | | | | implemented handling of 32-bit collisions in immutable.HashMap. review by community.
* Closes #3157 by overriding +: in List.Martin Odersky2010-03-111-1/+6
|