Created
October 25, 2016 15:15
-
-
Save lispm/9b43d64d1d990695a5cd4a098d370458 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
| ; orig | |
| (defun fl-alpha-cuts(lv alpha) | |
| (let ((i) (n) (fset) (sub_list)) | |
| (setq i 0) | |
| (setq n (length lv)) | |
| (while (< i n) | |
| (progn | |
| (setq fset (eval (nth i lv))) | |
| (setq sub_list (fl-alpha-cut fset alpha)) | |
| (print sub_list) | |
| (setq i (+ 1 i)) | |
| ) | |
| ) | |
| ) | |
| ) | |
| ; better | |
| (defun fl-alpha-cuts (lv alpha) | |
| (dolist (e lv) | |
| (print (fl-alpha-cut (eval e) alpha)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks very much for the replies, and the opinions!