lists.j
All files raw 207 B
use io;
def fruits as list of string init ["apple" , "pear" ];
$fruits [] = "plum" ;
io .printf ("%d fruits, the first is %s\n" , len ($fruits ), $fruits [0 ]);
for (def f in $fruits ) {
io .printf ("- %s\n" , $f );
}
Talks are licensed under CC BY 4.0 by their authors, their sample code under MIT-0. Source and contributions · jennifer-lang.dev · Legal
Disclaimer. The talks are provided as is, without warranty of any kind, express or implied, including accuracy, completeness, currency or fitness for a particular purpose. Each talk is the work and the responsibility of its author. Use the information and code in them at your own risk. To the extent permitted by law, the maintainers of the Jennifer project are not liable for any damage arising from the use of this site or its talks. Nothing here is legal, financial or professional advice.