Logo

Programming-Idioms

History of Idiom 11 > diff from v62 to v63

Edit summary for version 63 by programming-idioms.org:
[Clojure] Variable name is x

Version 62

2017-09-01, 15:50:56

Version 63

2017-09-01, 18:31:55

Idiom #11 Pick a random element from a list

List x must be non-empty.

Illustration

Idiom #11 Pick a random element from a list

List x must be non-empty.

Illustration
Extra Keywords
choose
Extra Keywords
choose
Code
(rand-nth coll)
Code
(rand-nth x)