Snippets

Mücahit Şenol Clojure Intern Main Method

Created by Mücahit Şenol last modified
(ns chap-9.core
  (:gen-class))

(defn test-intern
  []
  (do
    (intern *ns* 'yyy "test value")
    (+ 1 1)))

(defn -main
  "I don't do a whole lot ... yet."
  [& args]
  (test-intern)
  (println chap-9.core/yyy))

Comments (1)

  1. Mücahit Şenol

    It gives error:

    Caused by: java.lang.RuntimeException: No such var: chap-9.core/yyy

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.