This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-06
Channels
- # architecture (2)
- # aws (6)
- # bangalore-clj (3)
- # beginners (7)
- # boot (29)
- # cider (26)
- # cljs-dev (52)
- # cljsrn (1)
- # clojure (249)
- # clojure-dev (9)
- # clojure-italy (2)
- # clojure-norway (3)
- # clojure-russia (178)
- # clojure-uk (30)
- # clojureremote (6)
- # clojurescript (91)
- # core-async (4)
- # cursive (8)
- # datascript (3)
- # datavis (1)
- # datomic (6)
- # emacs (3)
- # figwheel (2)
- # hoplon (14)
- # incanter (6)
- # luminus (8)
- # mount (7)
- # off-topic (22)
- # om (25)
- # onyx (41)
- # pedestal (7)
- # re-frame (9)
- # ring (1)
- # spacemacs (4)
- # sql (1)
- # uncomplicate (1)
- # unrepl (37)
- # untangled (90)
- # yada (77)
random core function of the day
clojure.core/bases
([c])
Returns the immediate superclass and direct interfaces of c, if any
are you suggesting that people choosing functions that they think are useful might be better than random selection?
I think it's fine to pick a random function and then see who uses it. Could indicator of 1) who is aware of it and also 2) how useful it is. Probably needs a How many people new about this function?
comment too
ok, dumb question time - is there a core function that maps a function and a unique sequence (or a set) into a map where the keys are the original sequence, the values are f(key) ? like group-by
but the other way around?
I can do it with (zipmap vals (map inc vals))
but it feels like there should be a single function, my cheat-sheet-fu is failing me.
or in this case (into {} (map #(vector % (f %)) things)
- but somehow I find the for
syntax easier
@korny there is also partition with overlap
(partition 2 1 (range 10))
@malcolmsparks That's really nifty 🙂