Ok, thank you. I remember using Dreamweaver too. It was very advanced for those times.
Good Morning!
๐
morning
Morning
I feel rough as, horrible sore throat, which I don't know if it's due to the cold I seem to have or the covid test I went for yesterday as a precaution where I had to rub a brush on my tonsils, which are the main thing hurting (it was negative)
Probably that
Too enthusiastic ๐
Say you had to transform this [:a :b :c :d]
to this [[:a :b] [:b c:] [:c :d]]
Thoughts?
(->> [:a :b :c :d] (partition 2 1) (mapv vec))
lurvey
It's interesting that the Kotlin equivalent is list.zipWithNext(). I wonder if people tend to do it more in Kotlin land, enough to warrant a library method?
morning
It's useful for comparing things with what comes next in a list/string
Morn'
i feel like you could do that with juxt but my brain isn't in the zone rn
You'd still have to partition right? As juxt works at an single element level?
I'm assuming that you want to map the juxt
ahh yes cos you need the prev element
you're right
@dharrigan Also works as a transducer if you use partition-all
(into [] (partition-all 2) [:a :b :c :d])
If you want this form because youโre wanting to build a map you can also skip the intermediate collections and do:
(into {} (partition-all 2) [:a :b :c :d])
noice!
Although the form is slightly different
(into [] (partition-all 2) [:a :b :c :d]) ;; [[:a :b] [:c :d]]
(->> [:a :b :c :d] (partition 2 1) (mapv vec)) ;; [[:a :b] [:b :c] [:c :d]]
oh sorry didnโt notice you wanted the step
that's okay ๐
It was more a thought exercise, rather than something I need right now ๐
i've been working on an effectful lib for clj/s ... not quite ready yet, but if anyone cares to take a look, comments and thoughts are welcome: https://cljdoc.org/d/mccraigmccraig/promisefx/0.0.1.7-SNAPSHOT/doc/readme
I seem to recall someone had a clojure pub/sub framework for sending messages between different (jvm) clojure instances - anyone recall the name?