| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
"scala.Random" has been deprecated since 2.7.2 (replaced by
"scala.util.Random"), and will not be part of 2.8.
|
|
|
|
|
|
|
| |
Further development of the Numeric and Ordering traits. Replaced Predef
implicits from everything => Ordered with a single implicit from
Ordering => Ordered.
|
|
|
|
|
| |
Added a sequence shuffling method to scala.util.Random.
|
| |
|
|
|
|
|
| |
The classics never go out of style: reintegrated immutable.Queue.
|
|
|
|
|
| |
Deprecated "elements" method moved to "Iterable" were it belongs.
|
| |
|
|
|
|
|
|
| |
In "Iterable" and in all its subclasses, "iterator" replaces "elements"
(and assorted changes).
|
| |
|
|
|
|
|
|
|
|
| |
Not quite complete reintegration of a handful of collection classes, but
they compile quietly and keep to themselves (of course that's always
what the neighbors say after some loner goes on a rampage, so it's not
the innocuous description it once was.)
|
|
|
|
|
|
| |
Moved the script related classes from scala.collection.mutable to
scala.collection.script and reintegrated the Scriptable trait.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A big yet interim patch emerging from my attempts to centralize common
classloader-related code. As it turns out, not that much of the
patch is directly associated with that. Most of it is cleanup in the
neighborhoods I was visiting, but there are a few new library files
about which I'm open to feedback:
scala/util/control/Exception - lots of exception handling code.
scala/net/Utility - what would be the first file in scala.net.*,
more code to follow if that sounds like a good package idea.
scala/util/ScalaClassLoader - mostly convenience methods right
now, more sophistication to come
Also, this adds a :jar command to the repl which adds a jar to your
classpath and replays the session.
|
| |
|
| |
|
|
|
|
|
|
| |
added SynchronizedMap; changed Set.put to Set.add, implemented
LinkedHashMap/Set more efficiently.
|
|
|
|
|
|
| |
Case classes use product prefix instead of class name when computing
hash codes. (see #1332).
|
|
|
|
|
|
| |
KMP implementation for StringBuilder and test case. Repaired
long-standing infinite loop in lastIndexOf.
|
|
|
|
|
|
|
|
|
| |
Added java.lang.String's other format variant to RichString. At a glance
this may appear to create a conflict because format takes (args: Any*),
but since there is no format specifier for a Locale object, the first
argument being one such unambiguously means the second variant. i18n or
bust!
|
| |
|
| |
|
|
|
|
|
| |
Reverting 17770 - right, that is what "map view" means.
|
|
|
|
|
|
|
|
| |
Modified filterKeys to return the same type of Map as it was called
upon. If this method is doing something important it should probably be
documented, because right now it looks rather redundant with filter: map
filterKeys (_ < 10) map filter (x => x._1 < 10)
|
|
|
|
|
|
| |
some temporary code to find the bug (NoSuchElementException) in
LinkedHashMap
|
|
|
|
|
| |
Cleanup in aisle scala.util.automata! And fix for #1988.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Creates XMLOptions configuration object to address the proliferation
of Booleans associated with XML parsing. Utilizes to address tag
minimization issues described in #1118.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Created Inclusive and Exclusive subclasses of GenericRange. Moved
factories for GenericRanges inside the Range object. They are now
created by calling e.g. Range.Long(1,10,1) or Range.BigInt(0, BigInt(1)
<< 128, BigInt(1) << 124) .
|
|
|
|
|
| |
Optimiser-friendly changes to Range for more efficient loops.
|
|
|
|
|
|
|
| |
Various improvements to the optimiser: more aggresive inlining for monad
methods, bytecode reading in more cases, better copy propagation during
closure elimination.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Default Ordering implementations for various built-in types,
supplied by DrMacIver. Ticket #1303. 2) Implicits for scala.Numeric
and scala.Ordering so classes implementing those can use punctuation
and, more importantly,
infix notation. Compare "minus(plus(x, y), z)" to "x + y - z".
3) A generic implementation of Range, but leaving the original
Int-only Range untouched. A LongRange.
4) Numeric and Ordering implementations of BigInt, as required
for the new BigIntRange. Ticket #931.
5) Numeric implementations for built-in types changed to the
trait + implicit-object-extends-trait model so the implementation
can be mixed into other objects - in particular one might easily
want to combine Numeric[T] and Ordering[T] in one object.
6) Assorted tweaks to support all the above.
|
|
|
|
|
|
|
|
| |
Reverted probably unintentional change to Enumeration (the method
formerly called valueOf and now called withName needs to return
Option[Value], not Value) and updated the failing tests to use the new
Enumeration interface.
|
| |
|
| |
|
|
|
|
|
| |
Cleaned up format a little further now that .toArray[Any] works.
|
|
|
|
|
| |
Removed redundant type parameter for class Builder
|
| |
|
|
|
|
|
| |
Small change to Stream so force wouldn't always throw an exception.
|
|
|
|
|
|
| |
Explicit locking on Symbol creation so multiple readers don't have to
block up on synchronize. Closes bug #1307.
|
| |
|
| |
|
| |
|