Fork me on GitHub
#specter
<
2020-09-10
>
woodstock15:09:48

Hiya @nathanmarz! I was inspired by your recent hackernews article to try and jump into Specter again. I've tried a few times in the path and... well, I'm kind of thick, I think. Is there a most recent "best way" to learn Specter from the ground up?

Jeff Evans15:09:18

did you see all the stuff listed here? https://github.com/redplanetlabs/specter

Jeff Evans19:09:03

Just noticed something interesting today. Having a dangling selected? (i.e. no more paths after it) works in clj but fails in cljs .

(require '[com.rpl.specter :as sp])
(sp/select [sp/ALL even? sp/selected?] [1 3 5])
# in clj
=> []
# in cljs
Error: No protocol method ImplicitNav.implicit-nav defined for type cljs.core/MetaFn: [object Object]

nathanmarz21:09:25

@goomba the Learn Specter section on the github page is probably best place to start

nathanmarz21:09:41

@jeffrey.wayne.evans I guess MetaFn in cljs is not a function

nathanmarz21:09:46

so the implicit nav doesn't kick in