Fork me on GitHub

What would be a recommended way to read from stdin using nbb? fs? process?


Ah cool, sure


Is there something simpler maybe?


OK, here we go! #specter in #babashka, all specter's tests are passing! Install the latest dev preview:

bash <(curl ) --version 0.7.8-SNAPSHOT --dir .
Then try this script:
(require '[babashka.deps :as deps])

(deps/add-deps '{:deps {com.rpl/specter {:git/url ""
                                         :git/sha "8ba809a2cd35d3b6f8c5287e6bd3b4e06e42f6dc"}}})

(require '[com.rpl.specter :as s])

(s/transform [(s/walker number?) odd?] inc {:a 1 :b [1 2 3]})
./bb specter.clj
and it should print:
{:a 2, :b [2 2 4]}

🤯 3
🚀 5
Ferdinand Beyer17:03:02

One more reason to finally learn how to use Specter!


Babashka 0.7.8! This release improves compatibility with several libraries:, and! To use specter in babashka, use the following coordinates:

{:deps {com.rpl/specter {:git/url ""
                         :git/sha "8ba809a2cd35d3b6f8c5287e6bd3b4e06e42f6dc"}}}
Hopefully the compatibility commit can be upstreamed back into specter at some point. • Add as built-in library - this makes babashka compatible with • Add part of to support add property babashka.config to reflect bb.edn location ( • Several fixes and enhancements to run Red Planet Lab's library in babashka • support print-method impls on records • babashka.fs: add windows? predicate • SCI: add *clojure-version* and (clojure-version) • Add and • SCI: implement declare as macro • drop location metadata from symbols, except top level Full changelogs:

🎉 6