I\'m making some tedious calls to a bunch of functions, but the parameters will be determined at runtime. I wrote a simple function to keep my code DRY but giving it a name
Do (require 'cl) to pull in the Common Lisp package, then use flet instead of let:
(require 'cl)
flet
let
(flet ((do-work (x y z) (do-x x) (do-y y) ;; etc )) (cond (test-1 (do-work 'a 'b 'c)) (test-2 (do-work 'i 'j 'k))))