#!/usr/bin/picolisp /usr/lib/picolisp/lib.l (ifn (argv Given) (out 2 (prinl "usage: foodfind food_or_color")) (de Color ("Apple" . "red") ("Banana" . "yellow") ("Lemon" . "yellow") ("Carrot" . "orange") ) (when (assoc Given Color) (prinl Given " is a food with color " (cdr @) ".") ) (when (find '((X) (= Given (cdr X))) Color) (prinl (car @) " is a food with color " Given ".") ) ) (bye)