open:ns

ns

This is used to create a new namespace and associate it with the running program.

(ns namespace-name)

(ns clojure.myown
   (:require [clojure.set :as set])
   (:gen-class))
(defn hello-world []
   (println *ns*))
(hello-world)

Output

#object[clojure.lang.Namespace 0x50ad3bc1 clojure.myown]

  • open/ns.txt
  • 마지막으로 수정됨: 2021/11/23 00:55
  • 저자 127.0.0.1