Skip to content

Conversation

ssisksl77
Copy link

line56
(defn index-filter [pred coll](when pred
%28for [[idx elt] %28indexed coll%29 :when %28pred elt%29] idx%29))

I think that 'when' is not necessary. and I've changed like this.

(defn index-filter [pred coll](for [[idx elt] %28indexed coll%29 :when %28pred elt%29] idx))

please check this out.
If I am wrong. I'd be grateful that If you send me an email.
[email protected]

line56
(defn index-filter [pred coll]
  (when pred
     (for [[idx elt] (indexed coll) :when (pred elt)] idx)))

I think that 'when' is not necessary. and I've changed like this.

(defn index-filter [pred coll]
  (for [[idx elt] (indexed coll) :when (pred elt)] idx))

please check this out.
If I am wrong. I'd be grateful that If you send me an email.
[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant