[GiNaC-list] list of list

Sheplyakov Alexei varg at theor.jinr.ru
Sat Feb 17 13:02:39 CET 2007


Hello!

On Sat, Feb 17, 2007 at 06:50:29PM +0800, Jerome BENOIT wrote:
> my_list := [
> 	1,
> 	2,
> 	3,
> 	4,
> 	5,
> 	NULL];
> 
> gives the list [1,2,3,4,5] .

GiNaC does not support such (to put it mildly) weird objects.

> The idea is that inside a script the elements of the list
> can be easily commented or uncommented.
> 
> my_list := [
> 	1,
> 	2,
> #	3,
> #	4,
> #	5,
> 	NULL];
> 
> gives [1,2] .
> 
> can we do that with GiNaC ?

lst my_list;
my_list = 1,
          2/*,
					3,
					4,
					5*/
					;


Best regards,
 Alexei

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20070217/1df1d6dd/attachment.pgp


More information about the GiNaC-list mailing list