- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
ScalaDoc incorrect: Stack reverse returns a Seq
Stack.reverse returns the correct elements in a Seq, the doc says it returns
a Stack
http://www.scala-lang.org/docu/files/api/scala/collection/immutable/Stac...
doc










Re: ScalaDoc incorrect: Stack reverse returns a Seq
mutable.Stack.reverse returns a Seq
http://www.scala-lang.org/docu/files/api/scala/collection/mutable/Stack.html
--j
On Fri, Jan 30, 2009 at 6:25 PM, treetrouble <ari [dot] russo [at] gmail [dot] com> wrote:
Re: ScalaDoc incorrect: Stack reverse returns a Seq
Ah, thank you! Do you know why it's like that?
Jorge Ortiz-3 wrote:
>
> immutable.Stack.reverse returns an immutable.Stack
>
> mutable.Stack.reverse returns a Seq
>
> http://www.scala-lang.org/docu/files/api/scala/collection/mutable/Stack....
>
> --j
>
> On Fri, Jan 30, 2009 at 6:25 PM, treetrouble wrote:
>
>>
>> Stack.reverse appears to be calling Seq.reverse
>>
>>
>> http://www.scala-lang.org/docu/files/api/scala/collection/immutable/Stac...
>> doc
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ScalaDoc-incorrect%3A-Stack-reverse-returns-a-Seq-...
>> Sent from the Scala - User mailing list archive at Nabble.com.
>>
>>
>
>
Re: ScalaDoc incorrect: Stack reverse returns a Seq
This kind of problem will most probably get resolved once the collections library uses higher-kinded types (so, Scala 2.8.0).
--j
On Sat, Jan 31, 2009 at 9:17 AM, treetrouble <ari [dot] russo [at] gmail [dot] com> wrote:
ScalaDoc incorrect: Stack reverse returns a Seq
Stack.reverse appears to be calling Seq.reverse
http://www.scala-lang.org/docu/files/api/scala/collection/immutable/Stac...
doc