Skip to content

Instantly share code, notes, and snippets.

@lispm
Created October 25, 2016 15:15
Show Gist options
  • Save lispm/9b43d64d1d990695a5cd4a098d370458 to your computer and use it in GitHub Desktop.
Save lispm/9b43d64d1d990695a5cd4a098d370458 to your computer and use it in GitHub Desktop.
; 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))))
@kat-co
Copy link

kat-co commented Oct 25, 2016

Thanks very much for the replies, and the opinions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment