Fork me on GitHub
#specter
<
2016-06-07
>
joshkh13:06:54

this might be a silly question, but is specter/collect intended to be used in conjunction with specter/select, or is it strictly for transformations?

nathanmarz13:06:05

@rodeorockstar I use it sometimes with select

nathanmarz13:06:48

It just lets you get more information about the context of each value

joshkh13:06:32

yeah, definitely useful when i've needed it in the past, but i've only used it for transformations where the collected data is passed to the transformation function

joshkh13:06:03

when used with select are collected keys just merged into the result of the select?

nathanmarz13:06:35

yea, each result becomes a vector with the final navigated to value as the final element in the vector

joshkh13:06:00

ah, that makes a lot more sense now

nathanmarz13:06:23

(select VAL 1) -> [[1 1]]

joshkh13:06:00

thanks for the help 🙂