- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Misleading Javadocs?
Sun, 2011-05-22, 12:04
Consider the function ":+" in scala.collection.mutable.LinkedList.
The documentation says "Appends an element to this linked list"
However in actuality it doesn't modify the LinkedList, rather it returns a new LinkedList with the element appended to it.
Isn't this misleading, or outright incorrect?
Ian.
The documentation says "Appends an element to this linked list"
However in actuality it doesn't modify the LinkedList, rather it returns a new LinkedList with the element appended to it.
Isn't this misleading, or outright incorrect?
Ian.
- returns
Cheersa new collection of type
That
consisting ofelem
followed by all elements of this linked list.-- Martin
On Sun, May 22, 2011 at 1:04 PM, Ian Clarke <ian.clarke@gmail.com> wrote:
--
----------------------------------------------
Martin Odersky
Prof., EPFL and CEO, Typesafe
PSED, 1015 Lausanne, Switzerland
Tel. EPFL: +41 21 693 6863
Tel. Typesafe: +41 21 691 4967