<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Array.pairmatch%28%29</id>
	<title>Array.pairmatch() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Array.pairmatch%28%29"/>
	<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Array.pairmatch()&amp;action=history"/>
	<updated>2026-06-30T09:57:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://wiki.zcubes.com/index.php?title=Array.pairmatch()&amp;diff=212918&amp;oldid=prev</id>
		<title>Joseph: Created page with &quot;* &lt;&lt; Z3 Home  * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Array.pairmatch()&amp;diff=212918&amp;oldid=prev"/>
		<updated>2020-02-16T16:11:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;*&lt;a href=&quot;/Z3&quot; title=&quot;Z3&quot;&gt; &amp;lt;&amp;lt; Z3 Home &lt;/a&gt; *&lt;a href=&quot;/Z%5E3_Language_Documentation&quot; title=&quot;Z^3 Language Documentation&quot;&gt; Z3 Language Documentation&lt;/a&gt; * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;*[[ Z3 | &amp;lt;&amp;lt; Z3 Home ]]&lt;br /&gt;
*[[ Z%5E3_Language_Documentation | Z3 Language Documentation]]&lt;br /&gt;
*[[ Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member Functions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Array.pairmatch(SomeAtFoldValue, SomeAtReverseFoldValue, SomeStartFrom) ==&lt;br /&gt;
&lt;br /&gt;
Array.fold folds the array for the corresponding SomeAtFoldValue (and SomeAtReverseFoldValue), into subarrays if the value in the array element matches the given fold value. Array.pairmatch finds the matching pair of SomeAtFoldValue and returns the index. Used for internal advanced uses of parsing.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;a+[a+b]&amp;quot;&lt;br /&gt;
   .split(&amp;quot;&amp;quot;)&lt;br /&gt;
   .fold(&amp;quot;[&amp;quot;).print()&lt;br /&gt;
&lt;br /&gt;
[a,+,&lt;br /&gt;
	[[,a,+,b,]	]&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
(Compare this to the original string &amp;quot;a+[a+b]&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
[[Array.fold()|fold]]&lt;/div&gt;</summary>
		<author><name>Joseph</name></author>
	</entry>
</feed>