rplevy/swiss-arrows
View on GitHub ↗ ★ 580 Clojure
a collection of arrow macros
8 mentions on Hacker News by 8 people: 1 story, 7 comments · first 2013-03-02 · latest 2025-04-21
20082026
-
Swiss arrows ftw! https://github.com/rplevy/swiss-arrows https://github.com/hipeta/arrow-macros
comment by BoingBoomTschak · 2025-04-21 · in Pipelining might be my favorite programming language feature -
…last place respectively, but let you override with <>: (-<> x (foo bar) (map baz <>)) Found here: https://github.com/rplevy/swiss-arrows
comment by Straw · 2021-03-05 · in Clojure from a Schemer's Perspective -
…macros there. However, Clojure can do fancier things with variants of the common threading macros ( https://github.com/rplevy/swiss-arrows )
comment by dwohnitmok · 2020-08-02 · in A philosophical difference between Haskell and Lisp (2015) -
Also check out the Swiss arrows project which builds on the idea a bit. https://github.com/rplevy/swiss-arrows
comment by knubie · 2019-08-24 · in Threading Macros Guide -
…nested parens like (x (y (z))) one writes ((->> z) y x) In clojure there is an interesting package https://github.com/rplevy/swiss-arrows which allows one to perform successive operations with explicit placement of the result of prior…
comment by michaelmrose · 2019-03-16 · in Why Operators Are Useful -
…you can always use swiss arrows[0] instead: (-<> (range 10) (map #(+ % 2) <>) (reduce + <>)) [0] https://github.com/rplevy/swiss-arrows It's more common in functional languages and called a thrush or pipe operator. F#: [|0..9|] |> Seq.map…
comment by grayrest · 2015-08-26 · in The Beauty of Clojure -
I've been using Swiss Arrows. https://github.com/rplevy/swiss-arrows
comment by aaroniba · 2013-03-02 · in Clojure 1.5