Why am I getting an error message at startup (use 'clojure.contrib.repl-utils)?

I found that I can use the Chris Houser repl-utils library (clojure.contrib.repl-utils / source or show) to search in Java by reading the Clojure Program p. 20.

I searched the Internet and downloaded 'clojure -contrib.jar' and installed it as part of the class path.

The problem is that I cannot run the following command

(use 'clojure.contrib.repl-utils)

on the Clojure command line and emacs / slime.

What could be wrong? Is the Chirs Houser library different from "clojure -contrib.jar"?

0
source share
2 answers

FOUND SOLUTION

I asked and got answers.

, , , .

user=> (require 'clojure.contrib.repl-utils)
user=> (clojure.contrib.repl-utils/expression-info '(+ 1 2))
{:class java.lang.Number, :primitive? false}
0

, , : ? ?

+1

Source: https://habr.com/ru/post/1757590/


All Articles