<2022-08-19 周五>
边读Emacs Lisp Intro边做题(二)
打开emacs,按C-h i打开Info页,找到Emacs Lisp Intro。
(defun exercise-10.3-2 (arg)
"Using ‘nthcdr’ and ‘car’, construct a series of expressions to
return the first, second, third, and fourth elements of a list."
(interactive "p")
(message "%s" (car (nthcdr arg kill-ring))))
边学边练:使用EmacsLisp编写提取列表元素的函数,
本文介绍了如何在EmacsLisp中通过`nthcdr`和`car`函数实现一个交互式练习,用于获取列表的前几个元素。
406

被折叠的 条评论
为什么被折叠?



