This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-20
Channels
- # announcements (3)
- # babashka (7)
- # beginners (36)
- # calva (71)
- # cider (25)
- # clj-commons (5)
- # cljdoc (19)
- # cljs-dev (5)
- # clojure (223)
- # clojure-austin (2)
- # clojure-bay-area (1)
- # clojure-europe (31)
- # clojure-france (6)
- # clojure-nl (2)
- # clojure-norway (19)
- # clojure-spec (13)
- # clojure-uk (7)
- # clojurescript (127)
- # core-logic (2)
- # cursive (21)
- # datalevin (53)
- # datomic (9)
- # emacs (37)
- # events (1)
- # graphql (8)
- # jobs (12)
- # lsp (8)
- # off-topic (92)
- # pathom (49)
- # pedestal (1)
- # polylith (3)
- # re-frame (25)
- # releases (2)
- # sci (11)
- # shadow-cljs (13)
- # vim (10)
I like cheatsheets and nutshell books b/c it reminds me of things I've forgotten or shows me things I'd not noticed the first time: https://clojure.org/api/cheatsheet
I took a quick look and discovered memfn
which has been there since the primordial soup of 1.0. Who knew?
@raymcdermott TIL! Seems very useful, but I’ve probably forgotten about it by the time I need to write Java interop code 😛
in cases where duplicates are always consecutive it is performant, but how often do you only need that??? kind regards, someone who once introduced a bug because of dedupe
I guess if you want to produce random results it can make sense to use dedupe
to clean the output up…
Morning!
not really related to @otfrom’s good advice but just stumbled over requiring-resolve
which was added in 1.10
I changed some ugly code from this
(ns-resolve (do (require 'some-ns)
(the-ns 'some-ns)) 'some-var)
@raymcdermott There is also a 2-arity version of symbol
, i.e. (symbol var-ns var)
, although for some stupid reason it requires both args to be strings whereas the other version does not.