Created
January 7, 2015 05:00
-
-
Save verma/24ea50a7b5872fee52a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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