Skip to content

Instantly share code, notes, and snippets.

@verma
Created January 7, 2015 05:00
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 verma/24ea50a7b5872fee52a3 to your computer and use it in GitHub Desktop.
Save verma/24ea50a7b5872fee52a3 to your computer and use it in GitHub Desktop.
(ns node-tests.core
(:require [cljs.nodejs :as nodejs]
[cljs.core.async :as async :refer [<!]])
(:require-macros [cljs.core.async.macros :refer [go]]))
(nodejs/enable-util-print!)
(defn clojureify [f]
(fn [] (js/console.log f)))
(def exists? (clojureify inc))
(defn -main []
(exists?) ; Wrong number of args (2) passed to: core/exists?
(apply exists? [])) ; Works and prints: [Function: inc]
(set! *main-cli-fn* -main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment