fogus / himera

Home Page:http://himera.heroku.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible wrong comment in synonym.html

benoitv-code opened this issue · comments

In himera/resources/public/synonym.html, as far as I understand, I think the following comment should say values after 0 haven't been looked at as zero? (0 % 5) is true:

(def numbers [0 1 2 3 4 5 6 7 8 9 10])

(def filtered
  (filter #(zero? (rem % 5)) numbers))

(def firstn (first filtered))

;; lazy filter, values after 5 haven't
;; been looked at

Should be:

;; lazy filter, values after 0 haven't
;; been looked at

If the code really looks at the values up to 5, what do you think about adding a comment explaining why first looks at values up to the second occurrence?

Thanks.