hgiesel / closet

The Web Framework for Flashcards
https://closetengine.com
GNU General Public License v3.0
65 stars 6 forks source link

Local context of function is lost #2

Closed hgiesel closed 4 years ago

hgiesel commented 4 years ago
(defn check [pre, c]
  #(and (starts-with? pre %)
        (= (count %) c)))

(def my-check (check [0,0] 3))

(my-check [0,0,1]) /* error resolving pre and c */

Context of check is lost along the way.