Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2019 (2)
20082026
  1. Swiss arrows ftw! https://github.com/rplevy/swiss-arrows https://github.com/hipeta/arrow-macros
  2. ▲ 1
    Swiss Arrows
    story by esrh · 2022-03-26 · 0 comments
  3. …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
  4. …macros there. However, Clojure can do fancier things with variants of the common threading macros ( https://github.com/rplevy/swiss-arrows )
  5. 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
  6. …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
  7. …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
  8. I've been using Swiss Arrows. https://github.com/rplevy/swiss-arrows
    comment by aaroniba · 2013-03-02 · in Clojure 1.5