kibit icon indicating copy to clipboard operation
kibit copied to clipboard

Wrong suggestion for `(fn [x] [x x])`

Open or opened this issue 2 years ago • 1 comments

Howdy! I ran into this:

(map (fn [x] [x x]) [1 2 3 4])

will result in this advice:

Consider using:
  x
instead of:
  (fn [x] [x x])

I'm not sure which rule it is trying to apply here.

or avatar Jun 18 '22 16:06 or

Hello :wave: ~It looks like yet another form of https://github.com/jonase/kibit/issues/49~ My bad. I can't actually tell if it's related.

replomancer avatar Sep 30 '22 18:09 replomancer