Lasso Soft Inc. > Home

[ pairUp ]

Method

Pairup takes two containers and spits them back to pairs of each element.

  • Syntax
  • Methods
  • Traits
with n in pairup(iterable_element,iterable_element) ...
Has methods:
  • pairUp->oncreate(left::trait_forEach, right::trait_forEach)
  • pairUp->forEach()
Examples
  • Beginner

Create a series of pairs from two arrays

Code

with n in pairup((:1, 2, 3, 4), (:0, 9, 8, 7, 6, 5))
select #n

Result

(1 = 0), (2 = 9), (3 = 8), (4 = 7), ( = 6), ( = 5)

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