title: Wrong number of args (0) passed... Error?
body: <p>I believe this is valid Clojure code - and runs fine in a Lein console REPL - but errors inside the Cursive REPL:</p>
  
  <pre><code>Connecting to local nREPL server...
  Clojure 1.8.0
  nREPL server started on port 41303 on host 127.0.0.1 - nrepl://127.0.0.1:41303
  *ns*
  =&gt; #object[clojure.lang.Namespace 0x4394b860 "user"]
  (defn concat-some
    [f vec1 vec2]
    ((fn [x] (filter f x)
      (concat vec1 vec2))))
  =&gt; #'user/concat-some
  (concat-some even? [1 2 3] [4 5 6])
  clojure.lang.ArityException: Wrong number of args (0) passed to: user/concat-some/fn--4953
  </code></pre>
  
  <p>Am I missing something here?</p>
  
  <p>Thank you for your help!</p>
  
  <p><strong>Edit and Follow-up:</strong></p>
  
  <p>This is definitely a Parinfer issue. This code:</p>
  
  <pre><code>(defn concat-some
    [f vec1 vec2]
    ((fn [x] (filter f x))
      (concat vec1 vec2)))
  (concat-some even? [1 2 3] [4 5 6])
  </code></pre>
  
  <p>when pasted into the Cursive REPL with Parinfer turned on produces an incorrect paste and the resulting ArityException above. The same code pasted into the same REPL with Paredit turned on or Structural Editing turned off produces the expected output:</p>
  
  <pre><code>;; =&gt; #'user/concat-some
  ;; =&gt; (2 4 6)
  </code></pre>
  
  <p>I did not know that Structural Editing when active in Cursive is used in the editor - AND the REPL. I would still hope that valid code is valid code regardless of mode and wonder if this is the intended result of pasting into a Cursive/Parinfer REPL.(?)</p>
  
  <p>Thank you again for your help with this.</p>