0

I have the following Clojure code in LightTable

(ns exercise
  (:require [clojure.string :as str]))

(defn -main
  [& args]
  (def str1 "Hello world")
  (str/includes? str1 "world")
)

When i try to run it i get the following exception: clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: No such var: str/includes?

Am i importing the library wrong or is something else wrong ?

Nikola S.
  • 93
  • 10

1 Answers1

3

You're probably using an old Clojure version. includes? was added in 1.8.

amalloy
  • 89,153
  • 8
  • 140
  • 205