Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Possible wrong comment in synonym.html #25

@benoitv-code

Description

@benoitv-code

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions