This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
comment delim "#\|" "\|#" multiline nested | |
comment start ";" | |
vardef SPECIALCHAR = '\\.' | |
environment string delim "\"" "\"" begin | |
specialchar = $SPECIALCHAR | |
end | |
# broken: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Determine if any of the causes of the exception was of the specified type | |
(defn exception-cause? [klass ^Throwable t] | |
(->> (iterate #(.getCause ^Throwable %) t) | |
(take-while identity) | |
(some (partial instance? klass)) | |
boolean)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/dev/scala/cljrepl $ cat build.sbt | |
scalaVersion := "2.11.8" | |
libraryDependencies ++= Seq( | |
"org.clojure" % "clojure" % "1.8.0" | |
) | |
~/dev/scala/cljrepl $ cat src/main/scala/foo.scala | |
import clojure.java.api.Clojure | |
import clojure.java.api.Clojure.{`var` => cvar} |