Fork me on GitHub
#babashka
<
2019-11-26
>
borkdude10:11:36

$ plk -e "(require '[sci.core :as sci])" -e "(sci/eval-string \"(in-ns 'foo) (require '[clojure.string :as str]) ::str/foo\")"
:clojure.string/foo

borkdude10:11:38

$ ./bb "(ns foo (:require [clojure.set :refer [difference]])) (difference #{1 2 3} #{2 3 4})"
#{1}

borkdude16:11:10

file /tmp/ns.clj:

(ns foo
  (:require [clojure.string :as str])
  (:import (java.util.regex Pattern)))

(str/split "hihellogoodbye" (Pattern/compile "hello"))
$ bb /tmp/ns.clj
["hi" "goodbye"]

❤️ 2
borkdude16:11:57

I guess this namespace stuff is ready for some testing @jeroenvandijk