Skip to content

Instantly share code, notes, and snippets.

@darwin
Created September 19, 2016 22:31
Show Gist options
  • Select an option

  • Save darwin/ed2d6366e44aaea472d9c4f6dc4208e9 to your computer and use it in GitHub Desktop.

Select an option

Save darwin/ed2d6366e44aaea472d9c4f6dc4208e9 to your computer and use it in GitHub Desktop.
planck 00:30:26
cljs.user=> (def my-fn (fn [] (js/RegExp. "^prefix\\s+" "gi")))
#'cljs.user/my-fn
cljs.user=> (.toString my-fn)
"function cljs$user$my_fn(){\nreturn (new RegExp(\"^prefix\\\\s+\",\"gi\"));\n}"
cljs.user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment