Lasso Soft Inc. > Home

[ delve ]

Method

Lasso Delve is a Lasso utility method explicitly for handling embedded arrays. With one array which contain other arrays, delve allows you to treat one array as a single series of elements, thus enabling easy access to an entire tree of values.

  • Syntax
  • Methods
  • Traits
delve(array)
Has methods:
Examples
  • Beginner

Code

  var(items) = (: 'one', 2, (: 3, 'four'), 5, 6, array('seven', 'eight'), 9, 'ten')

  with item in delve($items)
  do {^
      #item
      '<br />'
  ^}

Result

one
2
3
four
5
6
seven
eight
9
ten

Recent Comments

No Comments found

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