Search results

Jump to navigation Jump to search
  • <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

View (previous 20 | next 20) (20 | 50 | 100 | 250 | 500)