replicate is a function that takes an integer and sequence and returns a sequence repeated n times.
eg. replicate 3 ["a"] returns ["a", "a", "a"]
replicate 3 ["a"]
["a", "a", "a"]
Does Common Lisp have an equivalent function, or do I need to write one?
(make-sequence 'list n :initial-element element)
HyperSpec
Use make-list
(make-list 3 :initial-element 'a)
He appreciates
(AAA)
Source: https://habr.com/ru/post/1346290/More articles:Can Intraweb + Delphi handle authorize.net authorization response using a SIM card? - delphiMYSQL "Sending Data" shows a different value every time - mysqlhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1346287/javascripts-this-keyword-points-to-the-window-from-within-stringprototype&usg=ALkJrhg1Rwzhxvc5IYXs2FtS_jJgE6rGtQConverting the WhenChanged Attribute (Generalized Time) in LDAP to DateTime in C # - c #Import and overwrite existing data in MySQL - importRemote branch with multiple local tracking branches - gitemacs find-grep grep - grepSPARQL query with COUNT and ORDER returns an odd result - semantic-webMemoryMappedFiles: how much memory can be allocated for files - memory-managementAre settings saved in Visual Studio 2010 using the solution or using the IDE? - visual-studio-2010All Articles