Lasso Soft Inc. > Home

[ pair->size ]

Method

The [pair->size] method always returns 2.

This method and the [pair->get] method ensure that the pair data type can be used with the [iterate] method.

  • Syntax
pair->size
Examples
  • Beginner

To return the size of a pair:

Use the [pair->size] method. The result is always 2.

Code

var( myPair = pair('First'='Second') )

$myPair->size

Result

2

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