This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-14
Channels
- # beginners (19)
- # boot (11)
- # cider (59)
- # cljs-dev (292)
- # cljsrn (2)
- # clojure (121)
- # clojure-brasil (19)
- # clojure-canada (2)
- # clojure-france (2)
- # clojure-italy (57)
- # clojure-spec (54)
- # clojure-uk (20)
- # clojurescript (83)
- # core-async (20)
- # cursive (5)
- # datascript (2)
- # datomic (10)
- # duct (25)
- # editors (4)
- # emacs (2)
- # fulcro (5)
- # funcool (1)
- # graphql (2)
- # immutant (8)
- # java (1)
- # jobs (4)
- # jvm (1)
- # keechma (5)
- # luminus (10)
- # off-topic (113)
- # om (36)
- # onyx (11)
- # parinfer (55)
- # pedestal (7)
- # protorepl (28)
- # re-frame (25)
- # reagent (6)
- # ring-swagger (1)
- # shadow-cljs (113)
- # spacemacs (1)
- # specter (23)
- # unrepl (8)
- # yada (8)
a chi lo dici. Nel preciso istante in cui mi illudo di pensare “sto finalmente cominciando a grokkare ‘sto approccio funzionale”, mi basta un problemino banale (per altri) per farmi esplodere come una supernova. L’umilta’ si impara a bastonate 😓.
per un attimo 'folders/file' non capivo cosa volesse dire, assumevo folders as in folding non directory
pensa che enumeration-seq
l'ho dovuta usare poco tempo fa. Se lavori con ConcurrentHashMap
e' l'unica offerta per estrarre le keys
non c'e' vero qualcosa di esplicito per creare chunked sequences (come c'e' invece rseq, subseq, seque etc.)?
user=> (let [buf (chunk-buffer 10)] (dotimes [i 10] (chunk-append buf i)) (chunk-cons (chunk buf) nil))
(0 1 2 3 4 5 6 7 8 9)
eh ho visto queste, volevo vedere se mi era sfuggito un (chunk-seq (range 10))
da qualche parte
user=> (let [buf (chunk-buffer 10)] (dotimes [i 10] (chunk-append buf i)) (chunk-cons (chunk buf) nil))
(0 1 2 3 4 5 6 7 8 9)
user=> (def a *1)
#'user/a
user=> (chunk-first a)
#object[clojure.lang.ArrayChunk 0x696f0212 "clojure.lang.ArrayChunk@696f0212"]
user=> (nth *1 0)
0
user=> (nth *2 1)
1
il fatto che le funzioni siano pubbliche e` solo perche` possono tornare utili, se sai quel che stai facendo
quindi creare un chunk per un PV o un PHM e` semplicemente fare new Chunk(currNode.arr)