Scala newbie here,

I'm using stanford's topic modelling toolkit

and it has a lazy iterable of type `LazyIterable[(String, Array[Double])]`

How should i iterate through all the elements in this iterable say `it` to print all these values?

I tried doing this by

```
while(it.hasNext){

System.out.println(it.next())

}

```

Gives an error

```
 error: value next is not a member of scalanlp.collection.LazyIterable[(String, Array[Double])]

```

This is the API source -> iterable\_name ->
`InferCVB0DocumentTopicDistributions` in

<http://nlp.stanford.edu/software/tmt/tmt-0.4/api/edu/stanford/nlp/tmt/stage/package.html>