You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sritchie edited this page Nov 28, 2011
·
1 revision
By default, koans are executed in a bare namespace with clojure.core, the meditations macro, and the __ and ___ symbols. Most koan projects will need to customize this namespace to make APIs and custom functions available.
To do this, simply add code forms to resources/dojo.clj. Each of these forms will be evaluated before every koan. Here's the dojo for the Cascalog-Koans:
This dojo makes the cascalog API available, along with a custom equality operator that doesn't exist in the API but made koans very concise. Now koans of this form will run just fine: