import scala.collection.JavaConversions._
val files: java.lang.Iterable[...] = ...
files.headOption match { ... // This throws NoSuchElementException
A java.lang.Iterable
should return a valid Iterator
when requested. Any implementation that doesn’t do that, is either faulty, or designed that way thus not generally usable.
--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-languag...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.