[stringtemplate-interest] Template-Operator []
Terence Parr
parrt at cs.usfca.edu
Tue Jun 6 11:32:47 PDT 2006
On Jun 6, 2006, at 4:06 AM, Dreyer Ulf (CR/APA3) wrote:
> Hi!
>
> The [] operator in a template concatenates 2 lists (enumerables).
> so that
> A = [1,2,3]
> B = [a,b,c]
> $[A,B]$ = [1,2,3,a,b,c]
>
> is there a way to get the following list out of A and B?
> [ [1,2,3] , [a,b,c] ]
Hi. good question. Hmmm...not sure. That operator really needs to
flatten the lists. Can you give an example usage?
Ter
More information about the stringtemplate-interest
mailing list