User contributions
Jump to navigation
Jump to search
- 15:43, 18 March 2020 diff hist +340 N Tan Created page with "<c>tan</c> returns the tangent of the given angle (in radians). === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''radians'' || nu..." current
- 15:41, 18 March 2020 diff hist 0 Sort
- 16:26, 17 March 2020 diff hist +369 N Sum Created page with "<c>sum</c> returns the total of all elements in a list, or all values in a map. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | '..." current
- 16:24, 17 March 2020 diff hist +354 N Shuffle Created page with "<c>shuffle</c> randomize the order of elements in a list, or the mappings from keys to values in a map. This is done in place. === Arguments === {| class="wikitable" |- ! P..."
- 16:23, 17 March 2020 diff hist +684 N String type Created page with "<c>string type</c> returns a map that represents the string datatype in MiniScript's core type system. See also: number, list, map, funcRef === Arguments ===..."
- 16:21, 17 March 2020 diff hist +364 N Str Created page with "<c>str</c> coverts any value to a string === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''x'' || any || value to convert |} ==..." current
- 16:20, 17 March 2020 diff hist +313 N Sqrt Created page with "<c>sqrt</c> returns the square root of a number. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''x'' || number || number to get..."
- 16:18, 17 March 2020 diff hist +666 N Split Created page with "<c>split</c> splits a string into a list, by some delimiter. See also: join === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- |..."
- 16:15, 17 March 2020 diff hist +725 N Sort Created page with "<c>sort</c> Sorts a list in place. With null or no argument, this sorts the list elements by their own values. See also: shuffle === Arguments === {| class="wikitabl..."
- 16:12, 17 March 2020 diff hist +817 N Slice Created page with "<c>slice</c> returns a subset of a string or list. This is equivalent to using the square-brackets slice operator seq[from:to], but with ordinary function syntax. === Argume..."
- 16:08, 17 March 2020 diff hist -1 Sin current
- 16:08, 17 March 2020 diff hist +336 N Sin Created page with "<c>sin</c> returns the sine of the given angle (in radians). === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''radians'' || numbe..."
- 16:06, 17 March 2020 diff hist -1 Sign current
- 16:06, 17 March 2020 diff hist +344 N Sign Created page with "<c>sign</c> returns -1 for negative numbers, 1 for positive numbers, and 0 for zero. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning..."
- 16:04, 17 March 2020 diff hist +594 N Rnd Created page with "<c>rnd</c> Generates a pseudorandom number between 0 and 1 (including 0 but not including 1). === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !!..."
- 16:03, 17 March 2020 diff hist +1 Round →Example
- 16:02, 17 March 2020 diff hist +602 N Round Created page with "<c>round</c> rounds a number to the specified number of decimal places. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''x'' ||..."
- 16:01, 17 March 2020 diff hist +3 Replace
- 16:00, 17 March 2020 diff hist +1,140 N Replace Created page with "<c>replace</c> Replace all matching elements of a list or map, or substrings of a string, with a new value. === Arguments === {| class="wikitable" |- ! Parameter Name !! De..."
- 15:54, 17 March 2020 diff hist +967 N Remove Created page with "<c>remove</c> removes part of a list, map, or string. See also: indexOf === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''se..."
- 15:50, 17 March 2020 diff hist +1 Range
- 15:50, 17 March 2020 diff hist +442 N Range Created page with "<c>range</c> Return a list containing a series of numbers within a range. from (number, default 0): first number to include in the list to (number, default 0): point at which..."
- 15:47, 17 March 2020 diff hist +465 N Push Created page with "<c>push</c> appends an item to the end of a list, or inserts it into a map as a key with a value of 1. See also: pop; pull; insert === Arguments === {| class="wi..."
- 15:45, 17 March 2020 diff hist +613 N Pull Created page with "<c>pull</c> removes and returns the first item in a list, or an arbitrary key of a map. If the list or map is empty (or if called on any other data type), returns null. See..." current
- 15:43, 17 March 2020 diff hist +610 N Pop Created page with "<c>pop</c> removes and returns the last item in a list, or an arbitrary key of a map. If the list or map is empty (or if called on any other data type), returns null. See al..." current
- 15:35, 17 March 2020 diff hist +191 N Pi Created page with "<c>pi</c> returns the universal constant π, that is, the ratio of a circle's circumference to its diameter. == Example == <ms>pi // returns 3.141593</ms> Category:Intri..." current
- 15:33, 17 March 2020 diff hist +529 N Number type Created page with "<c>funcname</c> Returns a map that represents the number datatype in miniScript's core type system. See also: string; list; map; funcRef === Usage Notes ==..."
- 15:28, 17 March 2020 diff hist +451 N Map type Created page with "<c>map type</c> returns a map that represents the map datatype in MiniScript's core type system. See also: number; string; list; funcRef === Usage Notes ===..."
- 17:59, 16 March 2020 diff hist +425 N Lower Created page with "<c>lower</c> returns a lower-case version of a string. See also: upper === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''sel..." current
- 17:56, 16 March 2020 diff hist -1 Log
- 17:56, 16 March 2020 diff hist +457 N Log Created page with "<c>log(x, base)</c> returns the logarithm (with the given) of the given number, that is, the number y such that base^y = x. === Arguments === {| class="wikitable" |- ! Para..."
- 17:53, 16 March 2020 diff hist +1 List type
- 17:52, 16 March 2020 diff hist +481 N List type Created page with "<c>list type</c> returns a map that represents the list datatype in MiniScript's core type system. See also: number, string, map, funcRef === Arguments ===..."
- 17:49, 16 March 2020 diff hist -49 Self.len
- 17:48, 16 March 2020 diff hist +568 N Self.len Created page with "<c>self.len</c> returns the number of characters in a string, elements in a list, or key/value pairs in a map. May be called with function syntax or dot syntax. === Argument..."
- 17:46, 16 March 2020 diff hist +467 N Join Created page with "<c>self.join</c> joins the elements of a list together to form a string. See also: split === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !!..."
- 17:42, 16 March 2020 diff hist +800 N Insert Created page with "<c>insert</c> inserts a new element into a string or list. See also: remove === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- |..."
- 17:38, 16 March 2020 diff hist +649 N IndexOf Created page with "<c>indexOf</c> returns index or key of the given value, or if not found. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''self''..."
- 17:34, 16 March 2020 diff hist +910 N HasIndex Created page with "<c>hashIndex</c> 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..."
- 17:32, 16 March 2020 diff hist +1 Indexes
- 17:31, 16 March 2020 diff hist +466 N Indexes Created page with "<c>indexes</c> Returns the keys of a dictionary, or the non-negative indexes for a string or list. See also hasIndex === Arguments === {| class="wikitable" |- ! Paramet..."
- 17:23, 16 March 2020 diff hist +1 Hash
- 17:22, 16 March 2020 diff hist 0 Hash
- 17:22, 16 March 2020 diff hist +621 N Hash Created page with "<c>hash</c> Returns an integer that is "relatively unique" to the given value.In the case of strings, the hash is case-sensitive. In the case of a list or map, the hash combi..."
- 17:19, 16 March 2020 diff hist +1 FuncRef
- 17:18, 16 March 2020 diff hist +507 N FuncRef Created page with "<c>funcRef</c> Returns a map that represents a function reference in MiniScript's core type system. This can be used with `isa` to check whether a variable refers to a functi..."
- 16:53, 16 March 2020 diff hist -1 Floor
- 16:53, 16 March 2020 diff hist +374 N Floor Created page with "<c>floor</c> Returns the "floor", i.e. closest whole number less than or equal to the given number. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Val..."
- 16:49, 16 March 2020 diff hist +2 Code current
- 16:48, 16 March 2020 diff hist +337 N Cos Created page with "<c>cos</c> Returns the cosine of the given angle (in radians). === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning |- | ''radians'' || nu..." current