Fork me on GitHub
#specter
<
2016-05-18
>
benzap20:05:23

so i've been looking at specter, do you think it can also be applied to matrices?

benzap20:05:15

been trying basic things like accessing elements in a matrix, and i've been having a hard time getting it working. Very new to your library, but I love it nonetheless since seeing your talk

benzap20:05:20

for example (use 'com.rpl.specter) (def x [[1 2 3] [4 5 6]]) (select [1 1] x) ;; failed

benzap20:05:22

(select [FIRST FIRST] x)

benzap20:05:28

(select [FIRST FIRST] x)

benzap20:05:04

is there a navigator that lets you select a specific value in a matrix

benzap20:05:28

I should probably do more reading before I ask this question, sorry in advance

nathanmarz21:05:07

benzap: You can use keypath

nathanmarz21:05:25

(select [(keypath 1) (keypath 1)] x)