Array Index Related Functions

From ZCubes Wiki
Revision as of 15:48, 13 September 2024 by Joseph (talk | contribs) (Created page with " * << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Array Index Related Functions

Array.before() Array.beforex() Array.after() Array.afterx() Array.around() Array.aroundx() Array.ith() Array.nth()

Extracts all elements before or after or around an index. Functions ending in x include the index also.

The member function ith provide the elements at the indices provided, with zero indexed indices. The member function nth provide the elements at the indices provided, with 1 indexed indices.

These member functions can be called with special symbols also.

Note all array functions have an equivalent in Global space. For example Array.after can also be called as After(array, param1, param2,...) etc.

Notation for Index Based Operators

⪪   before
⪬   beforex
⪫   after
⪭   afterx
⪥   around
Ⓘ   ith
Ⓝ   nth	

These symbols also can be used in place of the function names.
⪤   aroundx
Ⓘ   ith
Ⓝ   nth