[Top][All Lists]

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

Re: Hash tables

From: Stefan Monnier
Subject: Re: Hash tables
Date: 11 Sep 2003 18:50:33 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> but I want to pass some arguments to gdb-var-operation. I plan to change
> maphash to:
> (maphash FUNCTION TABLE &optional ARGS)
> so that FUNCTION gets called with KEY, VALUE and ARGS.

That is not necessary.  You can just use

  (maphash `(lambda (key value) (fun key value ',arg)) table)

instead.  And in most cases the above can even be simplified to

  (maphash (lambda (key value) (fun key value arg)) table)


reply via email to

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