And while we are at it:
(defn f-or
[s]
(loop [s (seq s)]
(when s
(if-let [f (first s)]
f
(recur (next s))))))
On Sat, Feb 20, 2010 at 06:24:53PM +0100, Meikel Brandmeyer wrote:
> (defn fand
> [s]
> (loop [s (seq s)
> l nil]
> (if s
> (when-let [f (first s)]
> (recur (next s) f))
> l)))
Should be a loop above. Not a let.
Sincerely
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