This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-10
Channels
- # announcements (9)
- # babashka (19)
- # beginners (39)
- # calva (7)
- # cherry (1)
- # cider (2)
- # clojure (31)
- # clojure-europe (8)
- # clojure-norway (9)
- # datalevin (10)
- # events (2)
- # fulcro (10)
- # hyperfiddle (9)
- # joker (1)
- # lsp (50)
- # membrane (34)
- # minecraft (2)
- # missionary (21)
- # off-topic (17)
- # pedestal (1)
- # polylith (8)
- # reitit (3)
- # sql (4)
- # squint (16)
- # xtdb (14)
Announcing two new takes on old functions: https://frenchy64.github.io/fully-satisfies/latest/io.github.frenchy64.fully-satisfies.somef.html#var-somef and https://frenchy64.github.io/fully-satisfies/latest/io.github.frenchy64.fully-satisfies.everyp.html#var-everyp.
Dependency information: https://github.com/frenchy64/fully-satisfies#dependency
I wrote a brief history of some-fn
and every-pred
that helps explain and
motivate these functions, and leaves you with some brain teasers: https://blog.ambrosebs.com/2022/09/10/unrolling-some-fn-every-pred.html
Adding another question to the post: Could find a way to not unroll it manually? Is there a combinator for that?
Thanks yes, Rich Hickey proposed that question 10 years ago in the same post https://groups.google.com/g/clojure-dev/c/iZNJxqm1JuA/m/35kjl_1F2xUJ
@U055XFK8V I actually contributed something close to malli https://github.com/metosin/malli/blob/master/src/malli/impl/util.cljc#L50
@UK0810AQ2 brilliant!
looks like you need the base case configurable: this should be false in Clojure:
((-some-pred [])) ;=> true
> The proposal to fix this was rejected, so we’re left without a neat end to this story. Bummer.