tag:blogger.com,1999:blog-7056990295646173627.post5469871566582698113..comments2020-02-02T17:06:11.199+00:00Comments on Learning Clojure: A Special Squarish AgeJohn Lawrence Aspdenhttp://www.blogger.com/profile/02587130870181071109noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7056990295646173627.post-31034422139010092342010-09-12T02:04:43.151+01:002010-09-12T02:04:43.151+01:00Tzach, you could if the sequence was finite. (I...Tzach, you could if the sequence was finite. (I'm assuming you mean #(= % x) rather than #(= x), which is always true.)<br /><br />With an infinite sequence, how will it know to stop searching if it doesn't find x after the first 1000000 entries?John Lawrence Aspdenhttps://www.blogger.com/profile/02587130870181071109noreply@blogger.comtag:blogger.com,1999:blog-7056990295646173627.post-65217204535534222432010-08-29T08:25:45.458+01:002010-08-29T08:25:45.458+01:00Nice!
Can we redefine find-in-increasing-seq as f...Nice!<br />Can we redefine find-in-increasing-seq as follow:<br />(defn find-in-increasing-seq [x seq]<br /> (some #(= x) seq))Tzachnoreply@blogger.com