Just started with clojure.
Lets say I have two vectors, v containing values and another vector idx
that contains the indices by which vector v should be ordered (rather a new
vector be created, ordered given by idx.
(def v [10, 11, 12, 13])
(def idx [1 3 0 2])
; goal is a new vector with values [11 13 10 12]
I tried combinations of map / apply / nth / get but could not get anything
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to firstname.lastname@example.org
Note that posts from new members are moderated - please be patient with your
To unsubscribe from this group, send email to
For more options, visit this group at
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.