I've found use on several occasions to have an optional list of variables or values in format.
For instance, suppose L = ("bob" "this" "that" 3 2 10 "a" 96 "----" 456). We could write
Code: Select all
(println (format "%s,%d,%s,%d\n" (select L 0 4 1 7)))
Code: Select all
(println (format "%s,%d,%s,%d\n" (L 0) (L 4) (L 1) (L 7))))
Eddie