Lasso Soft Inc. > Home

  • Articles

Arrays Explained

This article explains arrays in easy-to-understand language.

An Array is a type of data used to store a series of values that are accessible under a single variable.

It's like a bucket of rocks, leaves and worms. Only the rocks, the leaves and the worms are integers, strings or other arrays and the main array is the bucket of course.

See?

So easy.

var('myArray') = array(1,'two',3.0,'four', array('A','B','C')); 
iterate($myArray, local('item')); 
    #item + '<br>';
/iterate; 

Author: Vincent Rahming
Created: 21 Feb 2008
Last Modified: 24 Feb 2011

Comments

No comments found
You must be logged in to comment.

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft