Last active
June 10, 2016 21:33
-
-
Save wobh/fce8df1497575c75023029904c9e4ab0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CL-USER> | |
(defun πͺπ³ (ingredients) | |
(case ingredients | |
(πΎ 'π) | |
(π½ 'πΏ) | |
(π 'π) | |
(π 'π) | |
(t 'π²))) | |
(defun π’π± (thing) | |
(member thing '(π πΏ))) | |
(defun π’ (food) | |
(if (member food '(π πΏ π π)) | |
'π© | |
'π·)) | |
(defun π½ (dine food) | |
(if (eql 'π· dine) | |
'π· | |
(π’ food))) | |
(setf (fdefinition 'filter) #'remove-if-not) | |
#<FUNCTION REMOVE-IF-NOT> | |
CL-USER> (mapcar 'πͺπ³ '(πΎ π½ π π)) | |
(π πΏ π π) | |
CL-USER> (filter 'π’π± '(π πΏ π π)) | |
(π πΏ) | |
CL-USER> (reduce 'π½ '(π πΏ)) | |
π© | |
CL-USER> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment