add 'unit'-predicate for ingredients

This commit is contained in:
Christoffer Müller Madsen 2017-04-05 15:02:38 +02:00
parent 50f77e6a70
commit 1db904e6a1

View File

@ -22,6 +22,11 @@
(lambda (ingredient)
(car ingredient)))
(define ingredient-unit
(lambda (ingredient)
(if (= (length ingredient) 2)
""
(car (cdr ingredient)))))
;;