Fork me on GitHub
#specter
<
2016-10-09
>
richiardiandrea03:10:01

Hello folks! A newbie question, if I have a vec of vecs and want to conj to only the first vec, how should I go about? Sample: [[1 2] [4 6] [42]] -> [[1 2 3] [4 6] [42]]

richiardiandrea03:10:46

I tried FIRST but it navigates to the first element in each vector I believe (but I am trying again)

richiardiandrea03:10:15

I could stop here and do the conj in the transform function only to the first, but there might be a better way 😄

richiardiandrea03:10:12

oh, found...it is specter/VAL what I am looking for

richiardiandrea03:10:47

uhm..no probably my original idea to do it in the transform function is good for now, but I am open for suggestions

nathanmarz10:10:49

@richiardiandrea (setval [FIRST END] [3] [[1 2] [4 6] [42]] )