List. FromIterator expects a scala. Iterator but your implicit is returning a java.util.
Iterator This works import java.util. Enumeration implicit def enum2IteratorA(e : EnumerationA) = new IteratorA { def next = e. NextElement def hasNext = e.
HasMoreElements } import java.util.zip. {ZipFile, ZipEntry} val l = List. FromIterator(new ZipFile(null:java.io.
File). Entries) Adding one import at the top prevents compilation import java.util. Iterator There's been some discussion about unifying Scala and Java in 2.8 by just using java.util.Iterator.
On the downside, Java's Iterator has a remove method which makes no sense for Scala's immutable collections. UnsupportedOperationException? Blech!
On the plus side that makes stuff like this error go away Edit: I've added a Trac issue that the error message would have been clearer had it said "required: scala. Iterator? " https://lampsvn.epfl.Ch/trac/scala/ticket/2102.
List. FromIterator expects a scala. Iterator but your implicit is returning a java.util.Iterator.
This works import java.util. Enumeration implicit def enum2IteratorA(e : EnumerationA) = new IteratorA { def next = e. NextElement def hasNext = e.
HasMoreElements } import java.util.zip. {ZipFile, ZipEntry} val l = List. FromIterator(new ZipFile(null:java.io.
File). Entries) Adding one import at the top prevents compilation import java.util. Iterator There's been some discussion about unifying Scala and Java in 2.8 by just using java.util.Iterator.
On the downside, Java's Iterator has a remove method which makes no sense for Scala's immutable collections. UnsupportedOperationException? Blech!
On the plus side that makes stuff like this error go away. Edit: I've added a Trac issue that the error message would have been clearer had it said "required: scala. Iterator?" https://lampsvn.epfl.
Ch/trac/scala/ticket/2102.
Ah a newbie mistake ;-) thanks. – Peter Kofler Jun 30 '09 at 7:46.
As far as I know, Enumeration in Scala 2.7. X has an "elements" method and Scala 2.8.0 has an "iterator" method returing an Iterator. Why not use them? Oh, never mind, never mind.
Java's enumeration.
FromIterator expects a scala. Iterator but your implicit is returning a java.util.Iterator. There's been some discussion about unifying Scala and Java in 2.8 by just using java.util.Iterator.
On the downside, Java's Iterator has a remove method which makes no sense for Scala's immutable collections. On the plus side that makes stuff like this error go away. Edit: I've added a Trac issue that the error message would have been clearer had it said "required: scala.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.