Table of Contents

ns

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

Syntax

(ns namespace-name)

Example

(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]

Docs

Refs