[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add seq-random-elt

From: Stefan Monnier
Subject: Re: Add seq-random-elt
Date: Fri, 21 Oct 2016 17:30:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux)

>> Hmm... do we really need that?  What's the benefit?
> I think it's convenient.  Accessing random elements of sequences is not
> uncommon.

Right, but

    (seq-elt L (random (seq-length L)))

it pretty convenient to write and pretty clear as well, so the benefit
seems slim.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]