Skip to content

Instantly share code, notes, and snippets.

@mneise

mneise/core.cljs Secret

Last active November 9, 2015 09:38
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 mneise/9a94f49f2960d5ee1445 to your computer and use it in GitHub Desktop.
Save mneise/9a94f49f2960d5ee1445 to your computer and use it in GitHub Desktop.
If with constant or vector
(ns cljs-constants.core)
(if (= 2 2) 1 2)
(if (= 2 2) [1] [2])
// Compiled by ClojureScript 1.7.170 {}
goog.provide('cljs_constants.core');
goog.require('cljs.core');
if(cljs.core._EQ_.call(null,(2),(2))){
} else {
}
if(cljs.core._EQ_.call(null,(2),(2))){
new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [(1)], null);
} else {
new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [(2)], null);
}
//# sourceMappingURL=core.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment