This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

assoc-ref and family


Greg Badros writes:
 > Why is it that assoc takes KEY ALIST, whereas assoc-ref (and all the
 > other guile alist procs) takes the arguments in the reverse order: ALIST 
 > KEY?  Is this historical?  Since RnRS demands KEY ALIST, it seems it'd
 > be nicer if assoc-ref used the same ordering.  Or at least the

No, it's nice that assoc-ref uses the same order as vector-ref or string-ref,
so nothing unusual.
--
Klaus Schilling