> Calling
>
>    (def input (BufferedReader. (FileReader. "data/dm4p1/dm4p1.dEID")))
>    (def data (RichSequence$IOTools/readFastaDNA input nil))
>    (doseq [d (bio-iterator-seq data)] (prn 'Sequence (show d)))
>
> Printed all the sequences from the file, as required.
>
> Just to be sure, is `doseq` the correct way to pull items from a lazy
> sequence like this?
>

doseq is a good way to pull items from a seq if you want side effects.
If your computation does not have side effects or you want to evaluate
it lazily, you can use 'map' or 'for'.

Allen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to