<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Unknown</id>
	<title>MiniScript Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Unknown"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/wiki/Special:Contributions/Unknown"/>
	<updated>2026-04-29T00:38:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Http.delete&amp;diff=1131</id>
		<title>Http.delete</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Http.delete&amp;diff=1131"/>
		<updated>2023-10-17T02:04:19Z</updated>

		<summary type="html">&lt;p&gt;Unknown: Change http.delete to only delete the resource&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In [[Mini Micro]], the [[http]].delete function uses the DELETE method to delete the contents of the URL using the HTTP DELETE protocol.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| url || URL of the web page or resource to fetch&lt;br /&gt;
|-&lt;br /&gt;
| headers || optional map of HTTP headers&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
The following example, typed on the Mini Micro command line, deletes a product from the [https://dummyjson.com DummyJSON web site]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;&lt;br /&gt;
http.delete(&amp;quot;https://dummyjson.com/products/1&amp;quot;)&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>Unknown</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=MapUtil&amp;diff=1129</id>
		<title>MapUtil</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=MapUtil&amp;diff=1129"/>
		<updated>2023-10-16T03:31:01Z</updated>

		<summary type="html">&lt;p&gt;Unknown: Create mapUtil page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In [[Mini Micro]], &amp;lt;c&amp;gt;mapUtil&amp;lt;/c&amp;gt; is an [[import]] module in the &amp;lt;c&amp;gt;/sys/lib&amp;lt;/c&amp;gt; directory.  It provides various additional [[map]]-related functions, directly extending the [[map]] datatype.&lt;br /&gt;
&lt;br /&gt;
Like all the modules in &amp;lt;c&amp;gt;/sys/lib&amp;lt;/c&amp;gt;, the best documentation for mapUtil is the source code (&amp;lt;c&amp;gt;/sys/lib/mapUtil.ms&amp;lt;/c&amp;gt;) itself.  But this page summarizes the content in more concise form.&lt;br /&gt;
&lt;br /&gt;
=== Constants ===&lt;br /&gt;
The following values should be normally be prefixed with &amp;lt;c&amp;gt;mapUtil&amp;lt;/c&amp;gt;, e.g., &amp;lt;c&amp;gt;mapUtil.fromTo&amp;lt;/c&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Value / Purpose&lt;br /&gt;
|-&lt;br /&gt;
| fromTo || generate a map from one sequence (list or string) to another.  The two sequences must be the same length.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Added map methods ===&lt;br /&gt;
The following methods are added to the [[map]] type, and so are accessed using dot syntax after any map, for example: &amp;lt;c&amp;gt;{&amp;quot;Hello&amp;quot;: &amp;quot;World&amp;quot;}.inverse&amp;lt;/c&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Method !! Returns&lt;br /&gt;
|-&lt;br /&gt;
| get(''key'', ''defaultValue=null'') || look up the value for an index in this map, but if the given index is not found, return a default value instead. Works with inherited values, too.&lt;br /&gt;
|-&lt;br /&gt;
| hasValue(''v'', ''includeInherited=false'') || return true if this map contains the given value as a value (compare with built-in function .hasIndex, which checks whether this map has a given value as a key).  By default this&lt;br /&gt;
does not walk the inheritance chain (just like .hasIndex), but&lt;br /&gt;
if you pass ''true'' as the second parameter, then it does.&lt;br /&gt;
|-&lt;br /&gt;
| sortedIndexes || get the indexes of this map, but in sorted order (rather than undefined order as .indexes gives you).&lt;br /&gt;
|-&lt;br /&gt;
| inverse || return a new map that has the keys and values swapped (keys of this map become values of the result map, and vice versa).&lt;br /&gt;
|- &lt;br /&gt;
| filterIndexes(''func'') || remove any indexes for which the given function does not return true.&lt;br /&gt;
|-&lt;br /&gt;
| filterValues(''func'') || remove any key/value pairs for which the function, applied to the value, does not return true.&lt;br /&gt;
|-&lt;br /&gt;
| applyToValues(''func'') || apply the given function to all values.&lt;br /&gt;
|-&lt;br /&gt;
| pairs || get all key/value pairs as a list (in arbitrary order) of little maps with &amp;quot;key&amp;quot; and &amp;quot;value&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| swap(''key1'', ''key2'') || swap the values of two keys.  Note that this may be applied to locals (or globals), enabling you to swap the values of two variables.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;import &amp;quot;mapUtil&amp;quot;&lt;br /&gt;
print {&amp;quot;Hello&amp;quot;: &amp;quot;World&amp;quot;}.inverse //prints {&amp;quot;World&amp;quot;: &amp;quot;Hello&amp;quot;}&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>Unknown</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Http.delete&amp;diff=1128</id>
		<title>Http.delete</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Http.delete&amp;diff=1128"/>
		<updated>2023-10-16T03:04:20Z</updated>

		<summary type="html">&lt;p&gt;Unknown: Created page with &amp;quot;In Mini Micro, the http.delete function uses the DELETE method to return the contents of the URL using the HTTP DELETE protocol.  === Arguments ===  {| class=&amp;quot;wikitabl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In [[Mini Micro]], the [[http]].delete function uses the DELETE method to return the contents of the URL using the HTTP DELETE protocol.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| url || URL of the web page or resource to fetch&lt;br /&gt;
|-&lt;br /&gt;
| headers || optional map of HTTP headers&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
The following example, typed on the Mini Micro command line, deletes and retrieves a product from the [https://dummyjson.com DummyJSON web site]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;import &amp;quot;json&amp;quot;&lt;br /&gt;
request = http.delete(&amp;quot;https://dummyjson.com/products/1&amp;quot;)&lt;br /&gt;
request_data = json.parse(request)&lt;br /&gt;
pprint request_data&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>Unknown</name></author>
		
	</entry>
</feed>