Hi,

you wait for five lines. So you have to enter five lines. Enter three more 
and the "hung" will go away.

If you want to read an arbitrary number of lines and bail out depending on 
some decision you may use a lazy sequence.

(loop [lines (repeatedly read-line)]
  (let [line (first lines)]
    (when-not (bail-out? line)
      ...
      (recur (next lines)))))

Kind regards
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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