hi This function doesn't work properly. It doesn't call itself for all elements of tree-ids. For example, if tree-ids is '(1 2 3 4 *5 6*), then find-events gets called only on first 4 elements.
(defn find-events [tree-id] (let [children (get-children tree-id) ;; returns lazy seq _ (debug "<-" (prn-str children) "->") tree-ids (->> children (filter :category) (filter :visible) (map :tree-id)) event-ids (->> children (remove :category) (map :event-id))] (concat event-ids *(mapcat find-events tree-ids)*))) If I do this (*vec* (get-children tree-id)) then everything is fine. Can someone explain why it happens ? Two functions iterating the same seq - children ? -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.