in reply to Re: Idiom to return 0 or random number of array elements
in thread Idiom to return 0 or random number of array elements
Are you confusing the element at index 0 with 0 elements- e.g. the empty list? I want to the empty list with equal probability, and my solution does that. I'm just looking for a more succinct way to express it.
|
---|
In Section
Seekers of Perl Wisdom