nha*_*nha 3 clojure common-lisp
有没有办法避免重复1使用以下行cl-format?
(cl-format true "line~p: ~d\n" 1 1)
CL-USER> (format t "line~p: ~:*~d~%" 1)
line: 1
NIL
CL-USER> (format t "line~p: ~:*~d~%" 2)
lines: 2
NIL
Run Code Online (Sandbox Code Playgroud)
(还有~n@*第n个论点.)
22.3.7.1 Tilde Asterisk:Go-To
下一个arg被忽略了.~n*忽略接下来的n个参数.
〜:*备份在参数列表中,以便再次处理上次处理的参数.~n:*备份n个参数.
[...] ~n @*转到第n个arg,其中0表示第一个; n默认为0,所以〜@*返回第一个arg.在@n @*之后的指令将按顺序接受参数,从参数开始.