Skip to content

Instantly share code, notes, and snippets.

@matstani
Last active Dec 17, 2015
Embed
What would you like to do?
Clojureのuseをrequireで置き換える
;; 以下は同じ意味
(use 'clojure.java.io)
(require '[clojure.java.io :refer :all])
;; 以下も同じ意味
(use '[clojure.java.io :only [file]])
(require '[clojure.java.io :refer [file]])
;; nsマクロ内では
(ns helloworld.core
(:require [clojure.java.io :refer :all]
[clojure.string :refer [split]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment