Meredith Gregory | 7 Oct 00:06

collection conversion again...

Scalads and lasses,

Where is the documentation for the conversion idioms for the usual java collections collected? i've been grepping/searching/... for an hour now and cannot find a nicely collected set of documents describing the various ways to do this. Surely, surely, the vast majority of collections originate in Java and move toward Scala perhaps finally make it back to Java. So, the existence of this documentation seems inevitable.

Best wishes,

--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com
Erik Engbrecht | 7 Oct 00:15

Re: collection conversion again...

What industry do you work in?
 
"...the existence of this documentation seems inevitable" ???
 
Sorry...I couldn't help it...
 
There's the scala.collections.mutable.jcl (or something like that) for wrapping Java collections to make them look like mutable Scala collections.  I'm not aware of anything for the other way around, but it's been a while since I looked.

On Mon, Oct 6, 2008 at 6:09 PM, Meredith Gregory <lgreg.meredith <at> gmail.com> wrote:
Scalads and lasses,

Where is the documentation for the conversion idioms for the usual java collections collected? i've been grepping/searching/... for an hour now and cannot find a nicely collected set of documents describing the various ways to do this. Surely, surely, the vast majority of collections originate in Java and move toward Scala perhaps finally make it back to Java. So, the existence of this documentation seems inevitable.

Best wishes,

--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com



--
http://erikengbrecht.blogspot.com/
Sean McDirmid | 7 Oct 03:53

Re: collection conversion again...

Also, you can do "import scala.collections.mutable.jcl.Conversions._"
in your file to scope a bunch of implicit conversions that
automatically convert between Java and Scala collections.

Sean

On Tue, Oct 7, 2008 at 6:15 AM, Erik Engbrecht <erik.engbrecht <at> gmail.com> wrote:
> What industry do you work in?
>
> "...the existence of this documentation seems inevitable" ???
>
> Sorry...I couldn't help it...
>
> There's the scala.collections.mutable.jcl (or something like that) for
> wrapping Java collections to make them look like mutable Scala collections.
> I'm not aware of anything for the other way around, but it's been a while
> since I looked.
>
> On Mon, Oct 6, 2008 at 6:09 PM, Meredith Gregory <lgreg.meredith <at> gmail.com>
> wrote:
>>
>> Scalads and lasses,
>>
>> Where is the documentation for the conversion idioms for the usual java
>> collections collected? i've been grepping/searching/... for an hour now and
>> cannot find a nicely collected set of documents describing the various ways
>> to do this. Surely, surely, the vast majority of collections originate in
>> Java and move toward Scala perhaps finally make it back to Java. So, the
>> existence of this documentation seems inevitable.
>>
>> Best wishes,
>>
>> --greg
>>
>> --
>> L.G. Meredith
>> Managing Partner
>> Biosimilarity LLC
>> 806 55th St NE
>> Seattle, WA 98105
>>
>> +1 206.650.3740
>>
>> http://biosimilarity.blogspot.com
>
>
>
> --
> http://erikengbrecht.blogspot.com/
>


Gmane