Fork me on GitHub
#specter
<
2017-07-28
>
eriktjacobsen01:07:21

First-time specter user today; How would I compose [MAP-VALS (multi-path :checks :dependencies) ALL :relation] and [MAP-VALS :features MAP-VALS] ?

eriktjacobsen01:07:14

it looked like cond-path, but then it seems you're duplicating the multi-path and :features? Wasn't sure if there was a cleaner way. (ie [MAP-VALS (cond-path (multi-path :checks :dependencies) [(multi-path :checks :dependencies) ALL :relation] :features [:features MAP-VALS])])

nathanmarz04:07:12

@eriktjacobsen not sure what you mean by "compose"

nathanmarz04:07:46

if you want to do both paths at once it's just multi-path similar to what you're already doing

eriktjacobsen04:07:55

fair. the third block using cond-path is what I want, i just thought there might be another way besides duplicating the pieces in cond

nathanmarz04:07:40

putting (multi-path :checks :dependencies) as your condition does nothing

nathanmarz04:07:12

that condition is always true

nathanmarz04:07:36

conditionals in specter (`cond-path` and if-path) are true if at least one element is selected