unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Petton <nicolas@petton.fr>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Stephen J. Turnbull" <stephen@xemacs.org>,
	David Kastrup <dak@gnu.org>,
	Artur Malabarba <bruce.connor.am@gmail.com>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: Merging nth, aref, and elt.
Date: Sun, 14 Dec 2014 12:23:40 +0100	[thread overview]
Message-ID: <87wq5u79nk.fsf@petton.fr> (raw)
In-Reply-To: <jwv7fxuq48g.fsf-monnier+emacs@gnu.org>


Stefan Monnier writes:

>> Here's an initial diff for hash-tables. Should it use `get' instead of `elt'?
>
> I think we should probably come up with a library akin to seq.el but
> for mappings (also known as "functions" in set-theory).  It could be
> called map.el, maybe, and the operation could be map-elt?

That would be really nice. subr-x contains some extra hash-tables
functions already and I'm wondering how it should be dealt with without
implementing some functions twice if we were implementing a map.el
library. Should we keep hash-table functions in subr-x and simply alias
them in map.el or remove them from subr-x.el?

Nico
-- 
Nicolas Petton
http://nicolas-petton.fr



  reply	other threads:[~2014-12-14 11:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-29 21:40 Merging nth, aref, and elt Artur Malabarba
2014-10-30  1:52 ` Stefan Monnier
2014-10-30  9:51   ` David Kastrup
2014-10-30 13:30     ` Artur Malabarba
2014-10-31 19:13       ` Stefan Monnier
2014-10-31 19:56         ` Stefan Monnier
2014-11-01  1:08           ` Stephen J. Turnbull
2014-11-01  3:19             ` Stefan Monnier
2014-12-13  4:09               ` Artur Malabarba
2014-12-14  3:57                 ` Stefan Monnier
2014-12-14 11:23                   ` Nicolas Petton [this message]
2014-12-14 13:47                     ` Stefan Monnier
2014-12-18 16:01                       ` Artur Malabarba
2014-12-18 19:12                         ` Stefan Monnier
2014-12-19  1:37                           ` Ted Zlatanov
2015-01-11 13:58                             ` Nicolas Petton
2015-01-12  5:28                               ` Stefan Monnier
2015-01-12  9:29                                 ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wq5u79nk.fsf@petton.fr \
    --to=nicolas@petton.fr \
    --cc=bruce.connor.am@gmail.com \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stephen@xemacs.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).