Fix dynamic curry regression

I accidentally committed a change to the definition of curry that
severly alters how it functions! This commit fixed that, and adds a test
so that I don't unwittingly break it again :)
This commit is contained in:
scottolsen 2020-04-24 15:38:22 -04:00
parent 3b0438fbc5
commit 3cbe0e8c79

View File

@ -200,7 +200,7 @@
```")
(defndynamic curry [f x]
(fn [y]
(apply f (list x y))))
(f x y)))
(doc curry*
"Curry functions of any airity.