This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

format with two lists

2 posts · 2335 views

hi,
is there a format directive that loops over two lists, as follows?
(format "..." (list 1 2 3) (list 'a 'b 'c ))
=> 1 'a
   2 'b
   3 'c
I know that I can map format on the two lists. My goal here
is to understand the format directives a bit better.

Re: format with two lists

I don't think so... except for ~[...~] block nothing can process more then a single argument at a time, not even your custom function you could've plugged into format with ~/your-function/.
I'm not 100% sure, but it's close.