Logo

Programming-Idioms

History of Idiom 11 > diff from v61 to v62

Edit summary for version 62 by Jerry:
New Clojure implementation by user [Jerry]

Version 61

2017-04-12, 16:11:47

Version 62

2017-09-01, 15:50:56

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)