Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有更短的写法:
(apply f (cons a (cons b (cons c d))))
?
谢谢!
(我正在编写一些调用其他函数的辅助函数,这种“模式”似乎出现了很多。)
怎么样
(apply f a b c d)
请注意,在这两种情况下都d应该是 a seq。
d
seq