Fork me on GitHub
#specter
<
2016-07-14
>
peeja15:07:06

How would I select every other element in a vector (that is, every element whose index is even)?

nathanmarz15:07:52

I believe you would need to define a new navigator for that

nathanmarz15:07:37

one idea would be something like this: (select [(all-partitioned 2) LAST] data)

nathanmarz15:07:20

where all-partitioned works like partition and navigates you to each pair

nathanmarz15:07:35

or you could have an even more specific navigator called something like every-nth

spieden22:07:17

iā€™m getting a lot of mileage out of specter ā€” thanks for releasing it šŸ˜ƒ