Lasso Soft Inc. > Home

[ array->values ]


Part of trait_fintiteForEach. Simply returns the elements as a staticarray.

  • Syntax
  • Beginner

Create an array of type staticarray from an existing array

This example uses the [array->values] method to create a duplicate array of an array of days of the week which has type staticarray.


var( DaysOfWeek = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat') )

var (StaticDays = $DaysOfWeek->values )

'DaysOfWeek: '+$DaysOfWeek+', is type '+$DaysOfWeek->type+'\n'
'StaticDays: '+$StaticDays+', is type '+$StaticDays->type+'\n'


DaysOfWeek: array(Sun, Mon, Tue, Wed, Thu, Fri, Sat), is type array
StaticDays: staticarray(Sun, Mon, Tue, Wed, Thu, Fri, Sat), is type staticarray

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