From: Nicolas Petton <nicolas@petton.fr>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Add seq-random-elt
Date: Fri, 21 Oct 2016 22:52:30 +0200 [thread overview]
Message-ID: <87bmyd8lwx.fsf@petton.fr> (raw)
In-Reply-To: <jwvfunpjzxb.fsf-monnier+gmane.emacs.devel@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 568 bytes --]
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Hmm... do we really need that? What's the benefit?
I think it's convenient. Accessing random elements of sequences is not
uncommon.
Smalltalk has `Collection >> atRandom', Clojure has `rand-nth', etc. I
agree it's probably not something you use daily, but it's convenient to
have it when you need it.
> Is there maybe a sequence which will provide another implementation?
> If not, I'd vote to keep this out of seq.el.
I'd go for including it, but I don't have a super strong opinion about
it.
Cheers,
Nico
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 512 bytes --]
next prev parent reply other threads:[~2016-10-21 20:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-21 6:05 Add seq-random-elt Damien Cassou
2016-10-21 8:08 ` Nicolas Petton
2016-10-21 9:06 ` Nicolas Petton
2016-10-21 18:57 ` Stefan Monnier
2016-10-21 20:52 ` Nicolas Petton [this message]
2016-10-21 21:30 ` Stefan Monnier
2016-10-22 8:13 ` Michael Heerdegen
2016-10-22 12:42 ` Ted Zlatanov
2016-10-22 14:53 ` Clément Pit--Claudel
2016-10-22 14:54 ` Clément Pit--Claudel
2016-10-23 17:06 ` Damien Cassou
2016-10-24 11:03 ` Nicolas Petton
2016-10-24 13:07 ` Stefan Monnier
2016-10-24 16:24 ` Davis Herring
2016-10-24 16:54 ` Clément Pit--Claudel
2016-10-25 6:52 ` Damien Cassou
2016-10-25 10:33 ` Nicolas Petton
2016-10-25 18:58 ` Eli Zaretskii
2016-10-25 19:32 ` Nicolas Petton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bmyd8lwx.fsf@petton.fr \
--to=nicolas@petton.fr \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.