Could someone explain how the conditionals work? Unless I've got the syntax completely wrong, why put a condition inside of the else branch of an identical condition? Also, is there ever a case where "n-init" isn't a "clojure.lang.Atom"?
// Only counts to 5, will fix later
for(vari;i<6;i++){if(i==1){return1;}elseif(i==2){return2;}elseif(i==3){returnfizz;}elseif(i==4){return4;}elseif(i==5){returnbuzz;}}
Does it kind of work towards the same goal as the compiling aspect of Vue.js? Haven't learned react or anything with lisp. This just looks horrible. It's more like following logic in registry.
21
u/richardblack3 Apr 03 '20
Hickey has a type on like 759. It should be something like this, ya dingus:
(as-> (range) input (for [i input] (fizzbuzz (int i))))19
u/skellious Apr 04 '20
my god... it's like the anti-python
18
u/NoahTheDuke Apr 04 '20
This is truly shit. Well done, my head hurts trying to read this.
8
u/Moonlit_Tragedy Apr 04 '20
Wait why are the line numbers inverted?
1
u/Luapix Apr 04 '20 edited Apr 04 '20
Could someone explain how the conditionals work? Unless I've got the syntax completely wrong, why put a condition inside of the else branch of an identical condition? Also, is there ever a case where "n-init" isn't a "clojure.lang.Atom"?
2
u/ImAlsoRan May 01 '20
1
u/ChesterPsyenceCat Apr 04 '20
This seems brutal.
Does it kind of work towards the same goal as the compiling aspect of Vue.js? Haven't learned react or anything with lisp. This just looks horrible. It's more like following logic in registry.