#include "direction.hh"
#include "offset.hh"
#include "interval.hh"
-#include "pitch.hh"
SCM
ly_last (SCM list)
return SCM_BOOL_F;
}
-/* looks the key up in the cdrs of the alist-keys
- - ignoring the car and ignoring non-pair keys.
- Returns first match found. */
-SCM
-ly_assoc_cdr (SCM key, SCM alist)
-{
- if (gh_pair_p (alist)) {
- SCM trykey = ly_caar(alist);
- if(gh_pair_p(trykey) && to_boolean(scm_equal_p(key,ly_cdr(trykey))))
- return ly_car(alist);
- else
- return ly_assoc_cdr (key, ly_cdr (alist));
- }
- else
- return SCM_BOOL_F;
-}
-
/*
LIST has the form "sym1 sym2 sym3"
*/