;; How to import in Clojure

;; Generally, require is better than use

;; REPL/Console

(require 'clojure.string)
;; (clojure.string/trim "    abc   ")

(require 'clojure.string 'clojure.pprint)
;; (-> "   abc   "
;;     clojure.string/trim
;;     clojure.pprint/pprint)

(require '[clojure.string :as str])
;; (str/trim "   abc   ")

(require '[clojure.string :refer [trim]])
;; (trim "   abc   ")

(require '[clojure.string :refer [trim] :as str])
;; (str/capitalize (trim "   abc   "))

(require '[clojure.string :refer [trim capitalize]])
;; (capitalize (trim "   abc   "))

(require '[clojure.string :refer :all]) ;try to avoid
;; (capitalize (trim "   abc   "))


;; At the top of a clojure file with the ns macro
(ns my.cool.namespace
  (:require [clojure.string :as str]
            [clojure.pprint :refer [pprint]]))