]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-guile.cc
Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / lily / lily-guile.cc
index dd5080b36737a88a98f90996470bb70b4b702a0d..8ba98a4a69a839f221db10d79cf7ace6fffb4279 100644 (file)
@@ -736,3 +736,10 @@ struct ly_t_double_cell
   SCM c;
   SCM d;
 };
+
+/* inserts at front, removing duplicates */
+SCM ly_assoc_prepend_x (SCM alist, SCM key, SCM val)
+{
+  return scm_acons (key, val, scm_assoc_remove_x (alist, key));
+}
+