Moderators: They make you lose count(Longest thread still alive!)

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
Wait... Is that how you can chain functions in Clojure without nesting a gazillion parentheses? Because it looks a lot like this:

(+2) . (*3) . (*2) . (*2) $ 5

Edit: (+3) . (*3) . (*2) . (*2) $ 5 --Because I'm a derp
 

Strikingwolf

New Member
Jul 29, 2019
3,709
-26
1
Yes that is how you chain them :p ->> is the thread-last macro and -> is the thread-first macro

(->> 5 (* 4) (* 3) (+ 3))