open:alias

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
  • 마지막으로 수정됨: 2021/11/23 00:56
  • 저자 127.0.0.1