Lasso Soft Inc. > Home

[ set->values ]

Method

The [set->values] method returns a staticarray object containing the elements of the set.

  • Syntax
set->values
Examples
  • Beginner

Create an ordered copy of a set.

Use the [set->values] method to create duplicate of a set as a staticarray, effectively fixing the order of the objects in the set.

Code

var( workSchedule = set('Mon' = 'Jono', 
                        'Tues'='Sean', 
                        'Wed'='Jess', 
                        'Thur'='Eric',
                        'Fri' ='Jordon', 
                        'Sat'='Jono',
                        'Sun'='Jono') )

$workSchedule->values

Result

staticarray((Fri = Jordon), (Mon = Jono), (Sat = Jono), (Sun = Jono),
            (Thur = Eric), (Tues = Sean), (Wed = Jess))

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