Part of trait_fintiteForEach. Simply returns the elements as a staticarray.
array->values
This example uses the [array->values] method to create a duplicate array of an array of days of the week which has type staticarray.
Code
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'
Result
DaysOfWeek: array(Sun, Mon, Tue, Wed, Thu, Fri, Sat), is type array StaticDays: staticarray(Sun, Mon, Tue, Wed, Thu, Fri, Sat), is type staticarray
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments