Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Maps and sets (and the sorted versions) are not indexed, so it makes no sense to call nth on them. However, sometimes you want to pick a random element from those collections and you don't want to transform them to a vector (or something similar) which is a linear operation - mostly you don't even need the vector. I don't know if it possible on the technical side, but it would be nice to have it.

1 Answer

0 votes
by

I don't think we're going to add that, but happy to leave it here to see if there's interest via votes.

...