Hi, Am Mittwoch, 1. August 2012 14:21:22 UTC+2 schrieb Vinay D.E: > > Just curious, but if I chained a large number of such lazy constructs, > isn't there danger of a big unpredictable spike in CPU / Memory if > something deeply nested is accessed ? >
You may run into a stackoverflow, though. This normally doesn't happen for usual code. But if you were piling eg. filter on filter on filter based on some user input, where you a priori don't know the size, it could happen that you kick off an avalanche of seq calls when realising the outermost sequence. To be realised it has to realise the inner seq and the inner seq and the inner seq .... When this tower of sequences large enough, you will blow up the stack. 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 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