This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-24
Channels
- # announcements (2)
- # beginners (130)
- # calva (72)
- # cider (4)
- # cljdoc (15)
- # cljs-dev (3)
- # cljsrn (2)
- # clojars (4)
- # clojure (55)
- # clojure-nl (1)
- # clojure-uk (19)
- # clojurescript (46)
- # cursive (95)
- # datomic (6)
- # figwheel (40)
- # fulcro (12)
- # hyperfiddle (3)
- # off-topic (11)
- # onyx (3)
- # parinfer (6)
- # pathom (15)
- # protorepl (38)
- # re-frame (67)
- # reitit (18)
- # shadow-cljs (45)
- # tools-deps (2)
https://github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/EffectivePrograms.md
There is some clojure (core/math/combo?!) function that do something like this?
(group-intervals 3 [2 3 4 6 7 12])
=> {2 [2 3 4]
5 [6 7]
8 []
11 [12]}
I know that the keys I can generate with
(let [step 3 min-val 2 max-val 12]
(take-while #(<= % max-val) (iterate #(+ % step) min-val)))
Maybe this is a https://en.wikipedia.org/wiki/XY_problem. What are you trying to solve? I don’t understand what is the function supposed to do from your example.