Search results

Jump to navigation Jump to search
  • for a string or list. | ''self'' || string, list, or map || object to geet the indexes of
    457 bytes (60 words) - 13:14, 19 June 2020
  • <c>self.join</c> joins the elements of a list together to form a string. | ''self'' || list || list to join
    459 bytes (61 words) - 23:56, 17 November 2023
  • <c>shuffle</c> randomizes the order of elements in a list, or the mappings from keys to values in a map. This is done in place. | ''self'' || list or map || object to shuffle
    346 bytes (51 words) - 00:12, 18 November 2023
  • <c>sum</c> returns the total of all elements in a list, or all values in a map. | ''self'' || list or map || object to sum
    369 bytes (50 words) - 16:26, 17 March 2020
  • a list, or key/value pairs in a map. | ''self'' || list, string, or map || object to get the length of
    519 bytes (76 words) - 03:35, 31 July 2020
  • See also: [[number]], [[list]], [[map]], [[funcRef]] ...] to check whether a variable refers to a string. You can also assign new methods here to make them available to all strings.
    593 bytes (85 words) - 17:14, 5 December 2021
  • [[Category:List Methods]] [[Category:String Methods]]
    364 bytes (44 words) - 16:21, 17 March 2020
  • <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. | ''self'' || list or map || object to append an element to
    507 bytes (79 words) - 23:19, 30 July 2022
  • <c>insert</c> inserts a new element into a [[string]] or [[list]]. | ''self'' || string or list || sequence to insert into
    762 bytes (111 words) - 23:20, 30 July 2022
  • of a list or map, the hash combines the hash values of all elements. [[Category:List Methods]]
    647 bytes (89 words) - 20:55, 29 March 2021
  • ...Functions|intrinsic function]] that returns the number of elements in a [[list]], the number of characters in a [[string]], or the number of key/value pai ...the sequence or map as an argument; or as a member function (defined on [[list]], [[string]], and [[map]]) using [[dot syntax]], with no arguments.
    882 bytes (132 words) - 20:56, 29 February 2020
  • <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.
    610 bytes (94 words) - 15:43, 17 March 2020
  • <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.
    613 bytes (94 words) - 15:45, 17 March 2020
  • <c>list</c> is one of the core [[:Category:Data Types|data types]] in MiniScript. A list is mutable, ordered sequence of values. A list literal is defined by a comma-separated series of values enclosed in square
    2 KB (294 words) - 18:14, 22 May 2022
  • The intrinsic function <c>list</c> returns a map that represents the [[List|list]] datatype in ...a]] to check whether a variable refers to a list. You can also assign new methods here to make them available to all lists.
    464 bytes (67 words) - 22:10, 1 November 2020
  • | ''self'' || string, list, or map || object to search [[Category:List Methods]]
    658 bytes (87 words) - 15:20, 27 May 2022
  • | ''self'' || string, list, or map || object to check for an index on When self is a list or string, the result is true for
    909 bytes (139 words) - 13:14, 19 June 2020
  • <c>remove</c> removes part of a list, map, or string. | ''self'' || list, map, or string || object to remove something from
    1 KB (163 words) - 21:06, 17 November 2023
  • ...ditional [[list]]-related functions, many of them directly extending the [[list]] datatype. == Added list methods ==
    4 KB (615 words) - 21:59, 26 August 2021
  • See also: [[string type|string]]; [[list type|list]]; [[map type|map]]; [[funcRef]] ...le to all maps(though because of a limitation in MiniScript's parser, such methods do not work on numeric literals).
    554 bytes (86 words) - 22:12, 1 November 2020
  • <c>replace</c> replaces all matching elements of a list or map, or substrings of a string, with a new value. | ''self'' || list, map or string || object to replace elements of
    1 KB (162 words) - 21:49, 17 November 2023
  • == Methods and Properties == | [[SpriteDisplay.sprites]] || list of sprites in this display, in draw order
    810 bytes (116 words) - 20:59, 5 January 2021
  • == Methods == | replace(''substring'', ''otherString'', ''maxCount'') || Returns a new list replacing occurrences of ''substring'' with ''otherString'' at most ''maxCo
    2 KB (256 words) - 12:22, 6 December 2021
  • <c>[[color]].fromList</c> converts a color in RGB list form — red, green, blue, and optional alpha, all in the range 0-255 — t | ''rgbaList'' || list || null || list of the form <c>[red, green, blue]</c> or <c>[red, green, blue, alpha]</c>
    896 bytes (142 words) - 03:29, 11 July 2021
  • See also: [[number type|number]]; [[string type|string]]; [[list type|list]]; [[funcRef]] assign new methods here to make them available to all maps.
    456 bytes (72 words) - 22:13, 1 November 2020
  • === Methods and properties used with Bounds objects === Use these methods on Sprite instances, created with <c>[[new]] Bounds</c>.
    2 KB (278 words) - 16:31, 8 July 2021
  • == Methods and Properties == The following table shows methods available in all environments ([[Mini Micro]], [[Soda]], [[command-line Min
    2 KB (350 words) - 21:18, 29 January 2022
  • <c>sort</c> sorts a list in place. With null or no argument, this sorts the list elements by their own values. | ''self'' || list || list to sort
    1 KB (172 words) - 16:05, 1 February 2022
  • <c>slice</c> returns a subset of a string or list. This is equivalent to using the square-brackets slice operator <c>seq[from | ''seq'' || string or list || sequence to get a subsequence of
    1 KB (214 words) - 20:11, 6 May 2024
  • | fromTo || generate a map from one sequence (list or string) to another. The two sequences must be the same length. === Added map methods ===
    2 KB (394 words) - 03:31, 16 October 2023
  • <c>[[color]].toList</c> converts a color in standard string form to a list of four numbers: red, green, blue, and alpha, all in the range 0-255. ...h with them. In such cases, you can use <c>color.toList</c> to convert to list form, then later use <c>[[color.fromList]]</c> to convert back into standar
    1 KB (162 words) - 03:32, 11 July 2021
  • == Methods == The following methods are normally accessed via the <c>mathUtil</c> prefix, e.g. <c>mathUtil.radT
    4 KB (583 words) - 22:32, 26 August 2021
  • ...value of a given string. (If given a number, returns it as-is; if given a list or map, returns null.) [[Category:String Methods]]
    537 bytes (77 words) - 16:16, 18 March 2020
  • <c>split</c> splits a string into a list, by some delimiter. [[Category:String Methods]]
    660 bytes (93 words) - 06:03, 14 October 2023
  • === Methods and properties used with Sprite objects === Use these methods on Sprite instances, created with <c>[[new]] Sprite</c>.
    2 KB (360 words) - 20:40, 28 February 2022
  • | smallWords || list of words that should not be capitalized in a title, except as the first wor == Added string methods ==
    3 KB (469 words) - 21:36, 26 August 2021
  • === Methods === ...tter methods accept <c>offset</c> argument which, as with [[string]] and [[list]] indexing, may be <c>0 .. (len-1)</c> or <c>-len .. -1</c> where the negat
    3 KB (494 words) - 19:17, 15 April 2024
  • ...As you go over your code, look for ways to check your assumptions. (The methods below can help.) === Print to a log list ===
    3 KB (502 words) - 03:54, 4 January 2023
  • ...wise be unwieldy, e.g. <c>calcTotal</c> instead of <c>calculateTotal</c>. Methods that merely return an attribute (whether stored or calculated) should be na * <c>l</c>, <c>a</c>: a list (<c>a</c> is short for "array"; and note that <c>l</c> looks very similar t
    2 KB (402 words) - 21:43, 9 December 2022
  • ...elow). Note that MiniScript does not have a <c>tuple</c> type, and uses a list in situations where Python might use a tuple. === List Syntax ===
    10 KB (1,554 words) - 14:23, 14 January 2024
  • ...n to the above named colors, the <c>color</c> module defines the following methods: | [[color.toList]](''colorStr'') || convert a color into a list of the form <c>[red, green, blue, alpha]</c>
    2 KB (388 words) - 23:29, 14 November 2022
  • ...Readers comfortable with [[Python]] should think of it as a Python-style list; others may find the following table helpful. ...pt lists are manipulated by [[Slice|slicing]] or [[Dot syntax|dot-syntax]] methods like <c>len</c>, <c>insert</c>, and <c>remove</c>, rather than by functions
    7 KB (1,148 words) - 00:07, 11 December 2022
  • built-in types with new methods. For example, the built-in [[list]]
    4 KB (565 words) - 16:58, 28 July 2023