Fork me on GitHub
#specter
<
2017-02-11
>
nathanmarz01:02:00

@zane I assume you're talking about with-fresh-collected?

nathanmarz01:02:20

it takes in a path as a parameter, which itself needs to be compiled

nathanmarz01:02:31

you make sure the subpath is only compiled once by using defdynamicnav, which is like a macro to Specter's inline compiler, and late-bound-richnav which lets you mark the subpath parameter using late-path to ensure it's compiled once and re-used for every invocation of the callsite

nathanmarz01:02:28

that wiki page I referenced explains the mechanics of what happens at each callsite which will help you understand what these things do

zane01:02:03

Awesome. I'll have a look. Thanks!

zane16:02:19

Beat me to it.

bradford22:02:48

Hi fam. How do I remove a value from a vector using setval? I've got the path correct, but when I set the value to NONE, I get com.rpl.specter/NONE in the vector. Which does make sense, but that's not what I want 😉

(defn remove-luminati-refs-and-save [f]
  (setval [ALL :response :headers [ALL #(re-find #"luminati|hola" (:name %) )]] NONE f)

  )

bradford22:02:56

also specter is super magic and cool

nathanmarz22:02:34

@bradford setting a value to NONE to remove it is implemented in master but not released yet

bradford22:02:52

Ah, rad. thanks!

nathanmarz22:02:04

I think 0.13.3-SNAPSHOT on clojars has it though