Skip to content

Instantly share code, notes, and snippets.

@RnbWd
Created July 16, 2014 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RnbWd/bfbbfac2e35291870394 to your computer and use it in GitHub Desktop.
Save RnbWd/bfbbfac2e35291870394 to your computer and use it in GitHub Desktop.
jscljs
(ns clj_js)
(def ^:export clj-js cljs.core/clj->js)
(defn ^:export js-clj
([x] (cljs.core/js->clj x))
([x keywordize-keys] (cljs.core/js->clj x :keywordize-keys keywordize-keys)))
(ns func
(:refer-clojure :exclude
[count distinct empty first rest seq conj cons find nth last assoc dissoc
get-in update-in assoc-in fnil disj pop peek hash get empty? reverse
take drop partition partition-by iterate into merge subvec
take-while drop-while group-by
interpose interleave concat flatten
keys select-keys vals
prim-seq
map mapcat reduce reduce-kv filter remove some every? equiv
range repeat repeatedly sort sort-by
into-array
partial comp juxt
identity constantly
list vector array-map hash-map zipmap set sorted-set keyword symbol
sorted-set-by sorted-map sorted-map-by
sum inc dec even? odd? subseq
apply]))
(def ^:export vector cljs.core/vector)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment