(lambda (mode) "string")but I know in Haskell the idiomatic way to write that would have been
PS: It turns out Emacs Lisp is not at all as scary as I had imagined; with
M-x describe-functionit turns out it's all rather well documented, down to even the macros, and there's even nice descriptive documentation broken down by topics, and then
C-x C-ewill evaluate the subexpression at the point so you really can write code iteratively in repl in a way I haven't even done with purportedly repl-based languages like Python/Ruby/Haskell. I find I got most confused about when I need to quote something, since macros etc. don't make evaluation completely obvious -- like why do I need to quote on line 7?