unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40972: 27.0.91; assoc TESTFN's args reversed?
@ 2020-04-29 21:15 Shigeru Fukaya
  2020-04-29 23:30 ` Michael Heerdegen
  2020-09-09 14:46 ` Mattias Engdegård
  0 siblings, 2 replies; 6+ messages in thread
From: Shigeru Fukaya @ 2020-04-29 21:15 UTC (permalink / raw)
  To: 40972

It seems to me, for third argument of `assoc', arguments are passed in a
reverse order.

(assoc "assoc" '(("cl-assoc" A) ("cl-member" B))
       (lambda (x y) (equal (concat "cl-" x) y)))
==> nil

(assoc "assoc" '(("cl-assoc" A) ("cl-member" B))
       (lambda (y x) (equal (concat "cl-" x) y)))
==> ("cl-assoc" A)

Or, is this intended behavior??

Thanks,
Shigeru





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

end of thread, other threads:[~2020-09-09 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 21:15 bug#40972: 27.0.91; assoc TESTFN's args reversed? Shigeru Fukaya
2020-04-29 23:30 ` Michael Heerdegen
2020-09-09 13:22   ` Stefan Kangas
2020-09-09 14:46 ` Mattias Engdegård
2020-09-09 15:18   ` Stefan Kangas
2020-09-09 15:51     ` Mattias Engdegård

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