Good morning?
Morning
We had some snow at the weekend but it didn't rest this near the sea
π
We had light snow on and off yesterday, for most of the day
good morning
Good Morning!
Morning!
Morning, we had some snow this morning again. very weird indeed.
Morning
Morning!
No snow, here, was only sleeting. The look my dog gave me when we went for a run was not a friendly one
You must have a very clever dog!
mΓ₯ning!
morning
also a flurry of hail and snow here for 20 mins in the late morning
We had the fluffiest of snow flakes this morning.
It was fluffying it down this morning down in Surrey, UK.
but now, it's fine weather
We have βunevenly bright cloud shineβ now.
I have reservations about my 4 year old son, he's becoming too english. He was commenting this morning on how fine the weather was and he hopes it will improve later....
"I have reservations about" - sounds like a very English things to say
I've been here far too long π
2 small rubbish libraries to help me with charting and data science https://github.com/MastodonC/kixi.plot & https://github.com/MastodonC/kixi.large
docs sure are rubbish π
omg, the docs are terrible
not really fit for public consumption
atm it is really just solving some things that have been annoying me about the libraries that I've been using
if you aren't embarrassed by your first release then you waited too long to ship? π
TIL:
(def ^:dynamic *foo* :FOO)
(defn foo [x] [*foo* x])
(binding [*foo* :BAR]
(map foo [1 2 3]))
=> ([:FOO 1] [:FOO 2] [:FOO 3])
https://clojuredocs.org/clojure.core/binding#example-60746e7de4b0b1e3652d74c4babashka does not support bound-fn
, nor bound-fn*
, I just learnt. π Maybe it canβt?
@djblue I think it's not needed in cljs, as there's no threads, but I'm not certain tbhβ¦
@pez I don't think I've ever made a ClojureDocs update, all yours :)
Itβs my first as well. π
https://gist.github.com/micha/c9d8175d80e8a7d378adb6047e850c50 hoplon got your back @djblue (I've apparently googled this before)
this is laziness biting you
it's a common source of confusion. I spent an entire day figuring out why my datomic query didn't execute against a certain "as of" date because of this and then rewrote an entire app to take the db as an argument instead.
friends don't let friends use dynvars π¬
Yeah, lazyness is what I blamed in the ClojureDocs example. I might rewrite my (babashka) script to thread the value through as an argument instead. (Or I might stop at just using doall
, which works for my use case.)
I literally just experienced this same issue this weekend!
dynamic vars in tests are nice - in reality, not so much
bound-fn
:
user=> (def ^:dynamic *foo* :FOO)
#'user/*foo*
user=> (defn foo [x] [*foo* x])
#'user/foo
user=> (binding [*foo* :BAR]
(map (bound-fn [x] (foo x)) [1 2 3]))
([:BAR 1] [:BAR 2] [:BAR 3])
user=>
Even better, bound-fn*:
user=> (binding [*foo* :BAR]
(map (bound-fn* foo) [1 2 3]))
([:BAR 1] [:BAR 2] [:BAR 3])
Okay, now those are some pretty dope functions! :aw_yeah:
Thanks for sharing!
Is there a cljs equivalent?
Thanks!
Will you update the ClojureDocs example, or should I, @dominicm?