[RPL/2] New features : tables

BERTRAND Joel joel.bertrand at systella.fr
Mer 16 Juil 17:54:37 CEST 2008


	Hello,

	New feature for RPL/2 available since 4.0.0.prerelease.8 : tables. A 
table is not a daisy chain like list object and you cannot append object 
to table. Nevertheless, data access is more efficient with tables than 
with lists.

Delimiters : <[ ]>
Creation of regular table : { 2 3 } crtab

RPL/2> { 2 3 } crtab

1: <[ <[ { }
          { }
          { } ]>
       <[ { }
          { }
          { } ]> ]>
RPL/2> { 1 2 } "Hello, world!" put

1: <[ <[ { }
          "Hello, world!"
          { } ]>
       <[ { }
          { }
          { } ]> ]>
RPL/2>

Creation of irregular table : { 4 } crtab { 2 } { 3 } crtab put

1: <[ { }
       <[ { }
          { }
          { } ]>
       { }
       { } ]>

	Regards,

	JKB


Plus d'informations sur la liste de diffusion RPL2