Skip to content

Instantly share code, notes, and snippets.

@thheller
Created November 26, 2015 14:26
Show Gist options
  • Save thheller/9fc84ad8d8564c8dc367 to your computer and use it in GitHub Desktop.
Save thheller/9fc84ad8d8564c8dc367 to your computer and use it in GitHub Desktop.
(def ^:dynamic x (fn [a b] (+ a b)))
(def y (fn [] (x 1 2)))
(binding [x (fn [& args] (apply - args))] (y))
cljs.user.x = (function cljs$user$x(a,b){
return (a + b);
})
cljs.user.y = (function cljs$user$y(){
return cljs.user.x.call(null,(1),(2));
})
(function (){var x19870 = cljs.user.x;
cljs.user.x = ((function (x19870){
return (function() {
var G__19871__delegate = function (args){
return cljs.core.apply.call(null,cljs.core._,args);
};
var G__19871 = function (var_args){
var args = null;
if (arguments.length > 0) {
var G__19872__i = 0, G__19872__a = new Array(arguments.length - 0);
while (G__19872__i < G__19872__a.length) {G__19872__a[G__19872__i] = arguments[G__19872__i + 0]; ++G__19872__i;}
args = new cljs.core.IndexedSeq(G__19872__a,0);
}
return G__19871__delegate.call(this,args);};
G__19871.cljs$lang$maxFixedArity = 0;
G__19871.cljs$lang$applyTo = (function (arglist__19873){
var args = cljs.core.seq(arglist__19873);
return G__19871__delegate(args);
});
G__19871.cljs$core$IFn$_invoke$arity$variadic = G__19871__delegate;
return G__19871;
})()
;})(x19870))
;
try{return cljs.user.y.call(null);
}finally {cljs.user.x = x19870;
}})()
cljs.user.x = (function cljs$user$x(a,b){
return (a + b);
})
cljs.user.y = (function cljs$user$y(){
return (cljs.user.x.cljs$core$IFn$_invoke$arity$2 ? cljs.user.x.cljs$core$IFn$_invoke$arity$2((1),(2)) : cljs.user.x.call(null,(1),(2)));
})
(function (){var x21270 = cljs.user.x;
cljs.user.x = ((function (x21270){
return (function() {
var G__21271__delegate = function (args){
return cljs.core.apply.cljs$core$IFn$_invoke$arity$2(cljs.core._,args);
};
var G__21271 = function (var_args){
var args = null;
if (arguments.length > 0) {
var G__21272__i = 0, G__21272__a = new Array(arguments.length - 0);
while (G__21272__i < G__21272__a.length) {G__21272__a[G__21272__i] = arguments[G__21272__i + 0]; ++G__21272__i;}
args = new cljs.core.IndexedSeq(G__21272__a,0);
}
return G__21271__delegate.call(this,args);};
G__21271.cljs$lang$maxFixedArity = 0;
G__21271.cljs$lang$applyTo = (function (arglist__21273){
var args = cljs.core.seq(arglist__21273);
return G__21271__delegate(args);
});
G__21271.cljs$core$IFn$_invoke$arity$variadic = G__21271__delegate;
return G__21271;
})()
;})(x21270))
;
try{return cljs.user.y();
}finally {cljs.user.x = x21270;
}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment