alias

Add an alias in the current namespace to another namespace. Arguments are two symbols: the alias to be used and the symbolic name of the target namespace.

(alias aliasname namespace-name)

(ns clojure.examples.example
   (:require [clojure.set :as set])
   (:gen-class))
(defn example []
   (alias 'string 'clojure.examples.hello))
(example)

  • open/alias.txt
  • Last modified: 2024/10/05 06:15
  • by 127.0.0.1