Fork me on GitHub

Does this work in ClojureScript:

(ns foo
  (:require [ :as bar]))
(require '[ :as buzz])

Joshua Suskalo21:07:21

There's been a recent release which did add this.


yes, it should work. moreover, if the second expression is generated by a macro, it also works in a recent version of CLJS


To whomever just asked about a shorter way to partition and combine strings but deleted their message - you can use a regex for that:

(clojure.string/replace "12345678" #"(\d\d)(?=\d)" "$1 ")
Now you have an extra problem though. ;)