<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=HasIndex</id>
	<title>HasIndex - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=HasIndex"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=HasIndex&amp;action=history"/>
	<updated>2026-04-26T15:24:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=HasIndex&amp;diff=529&amp;oldid=prev</id>
		<title>JoeStrout: fixed typo</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=HasIndex&amp;diff=529&amp;oldid=prev"/>
		<updated>2020-06-19T13:14:02Z</updated>

		<summary type="html">&lt;p&gt;fixed typo&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:14, 19 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;c&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;hashIndex&lt;/del&gt;&amp;lt;/c&amp;gt; return whether the given index is valid for this object, that is, whether it could be used with square brackets to get some value&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;c&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;hasIndex&lt;/ins&gt;&amp;lt;/c&amp;gt; return whether the given index is valid for this object, that is, whether it could be used with square brackets to get some value&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;from self.   &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;from self.   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=HasIndex&amp;diff=187&amp;oldid=prev</id>
		<title>JoeStrout: JoeStrout moved page HashIndex to HasIndex</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=HasIndex&amp;diff=187&amp;oldid=prev"/>
		<updated>2020-03-17T15:22:54Z</updated>

		<summary type="html">&lt;p&gt;JoeStrout moved page &lt;a href=&quot;/wiki/HashIndex&quot; class=&quot;mw-redirect&quot; title=&quot;HashIndex&quot;&gt;HashIndex&lt;/a&gt; to &lt;a href=&quot;/wiki/HasIndex&quot; title=&quot;HasIndex&quot;&gt;HasIndex&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:22, 17 March 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=HasIndex&amp;diff=174&amp;oldid=prev</id>
		<title>71.226.33.30: Created page with &quot;&lt;c&gt;hashIndex&lt;/c&gt; return whether the given index is valid for this object, that is, whether it could be used with square brackets to get some value from self.    See also: In...&quot;</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=HasIndex&amp;diff=174&amp;oldid=prev"/>
		<updated>2020-03-16T17:34:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;c&amp;gt;hashIndex&amp;lt;/c&amp;gt; return whether the given index is valid for this object, that is, whether it could be used with square brackets to get some value from self.    See also: In...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;c&amp;gt;hashIndex&amp;lt;/c&amp;gt; return whether the given index is valid for this object, that is, whether it could be used with square brackets to get some value&lt;br /&gt;
from self.  &lt;br /&gt;
&lt;br /&gt;
See also: [[Indexes]]&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Default Value !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ''self'' || string, list, or map || object to check for an index on&lt;br /&gt;
|-&lt;br /&gt;
| ''index'' || any || value to consider for possible index&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Usage Notes ===&lt;br /&gt;
When self is a list or string, the result is true for&lt;br /&gt;
integers from -(length of string) to (length of string-1).  When&lt;br /&gt;
self is a map, it is true for any key (index) in the map.  If&lt;br /&gt;
called on a number, this method throws a runtime exception.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;&amp;quot;foo&amp;quot;.hasIndex(2)	// returns 1&amp;lt;/ms&amp;gt;&lt;br /&gt;
&amp;lt;ms&amp;gt;&amp;quot;foo&amp;quot;.hasIndex(3)	// returns 0&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Intrinsic Functions]]&lt;br /&gt;
[[Category:List Methods]]&lt;br /&gt;
[[Category:String Methods]]&lt;br /&gt;
[[Category:Map Methods]]&lt;br /&gt;
[[Category:Numeric Functions]]&lt;/div&gt;</summary>
		<author><name>71.226.33.30</name></author>
		
	</entry>
</feed>