Created
May 18, 2014 22:38
-
-
Save shajra/029b28b22ffbf65558f4 to your computer and use it in GitHub Desktop.
What's a recommend refactoring for this Emacs lisp snippet?
This file contains 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
; I know this is super naive, but I haven't been in a Lisp for some time, and I | |
; haven't had to think about how best to deal with a Lisp-1. | |
; | |
; Really, all I'm trying to do here is define a local function so it's easier | |
; to read in the mapcar call. | |
; | |
(defun tnks--gnus-ident (idents) | |
(let | |
((f (lambda (ident) (list (car ident) nil (cdr ident) nil nil nil)))) | |
(mapcar (lambda (i) (funcall f i)) idents))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment