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
  • Last modified: 2024/10/05 06:15
  • by 127.0.0.1