Difference between revisions of "Array.$A()"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
 
Line 10: Line 10:
  
 
e.g. DebugSelectorObjects.$A("attrs.x") where DebugSelectorObjects is an array of objects.
 
e.g. DebugSelectorObjects.$A("attrs.x") where DebugSelectorObjects is an array of objects.
 +
 +
a=[{a:3,b:5},{a:45,b:43}];
 +
 +
a.$A("a")
 +
 +
3 45

Revision as of 07:55, 4 February 2020


Array.$A(attributename)

Assuming the array of objects, is a parameter string for an attribute (say attrs.x) and extracts that attribute for each array element object.


e.g. DebugSelectorObjects.$A("attrs.x") where DebugSelectorObjects is an array of objects.

a=[{a:3,b:5},{a:45,b:43}];

a.$A("a")

3 45