It’s nice to see so many solutions: ~A, ~<, and ~{ so far.
The ~@{ iteration construct provides a concise solution:
(format nil "~v@{~A~:*~}" 3 #\*)
More Related Contents:
- Why exactly is eval evil?
- Unexpected persistence of data [duplicate]
- Why does this function return a different value every time?
- Lisp, instructions not working in defun [duplicate]
- How to generate all the permutations of elements in a list one at a time in Lisp?
- Common lisp error: “should be lambda expression”
- setq and defvar in Lisp
- Lisp Executable
- Variable format
- Variable references in lisp
- values function in Common Lisp
- How can I read the contents of a file into a list in Lisp?
- LET versus LET* in Common Lisp
- How to remove nested parentheses in LISP
- How many primitives does it take to build a LISP machine? Ten, seven or five?
- Dynamic and Lexical variables in Common Lisp
- Lisp – Print out () instead of nil for empty list
- What’s the best way to learn LISP? [closed]
- How do I print curly-brace characters in a string while using .format?
- Current time formatting with Javascript
- What is the difference between Lisp-1 and Lisp-2?
- Mysql: Setup the format of DATETIME to ‘DD-MM-YYYY HH:MM:SS’ when creating a table
- How to convert String to Date without knowing the format?
- Automatic image format detection in PHP
- Recursive range in Lisp adds a period?
- Best way to convert Java SQL Date from yyyy-MM-dd to dd MMMM yyyy format
- python format datetime with “st”, “nd”, “rd”, “th” (english ordinal suffix) like PHP’s “S”
- SwingWorker not responding
- Using Struts2 Tags to Formatting Numbers
- What is the clojure equivalent of the Python idiom “if __name__ == ‘__main__'”?