Page 1 of 1

format with two lists

Posted: Fri Nov 09, 2012 9:34 am
by stackman
hi,
is there a format directive that loops over two lists, as follows?

Code: Select all

(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

Posted: Fri Nov 09, 2012 11:08 am
by wvxvw
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.