unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Is there any default way to append hashes?
@ 2021-05-03 15:23 Jean Louis
  2021-05-03 16:17 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2021-05-03 15:23 UTC (permalink / raw)
  To: Help GNU Emacs

I am using this function to append hashes, is there maybe some better
or default method?

(defun hash-append (h1 h2)
  "Append hash H2 to H1 and return H1."
  (maphash (lambda (key value) (puthash key value h1)) h2)
  h1)



Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-03 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-03 15:23 Is there any default way to append hashes? Jean Louis
2021-05-03 16:17 ` Stefan Monnier
2021-05-03 21:30   ` Jean Louis

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).