Lasso Soft Inc. > Home

[ set ]

Method

The [set] creates a new set. Any parameters to the method are copied as the initial elements for the set.

  • Syntax
  • Methods
  • Traits
set( value_1, value_2, ..., value_3 )
Has methods:
Examples
  • Beginner

To initialize a variable as a set.

Use the [set] method. This example shows the initialization of a variable as a set with some initial elements.

Code

var( mySet = set('one', 2,'three', pair('four'=4)) )

$mySet

Result

set(one, 2, (four = 4), three)

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