Y
Hacker News
new
|
ask
|
show
|
jobs
by
muhuk
4413 days ago
And there's synthread[1] for more complex cases:
(-> {:a 1 :b 2} (->/assoc :a inc) (->/as {:keys [b]} (->/when (> b 10) (->/assoc :large-b true))))
1:
https://github.com/LonoCloud/synthread