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.
レプリケートは、整数とシーケンスを受け取り、n回繰り返されるシーケンスを返す関数です。
例replicate 3 ["a"]:["a", "a", "a"]
replicate 3 ["a"]
["a", "a", "a"]
Common Lispには同等の機能がありますか、それとも作成する必要がありますか?
make-listを使用する
(make-list 3 :initial-element 'a)
に評価します
(A A A)
(make-sequence 'list n :initial-element element)
HyperSpec