Search results
Jump to navigation
Jump to search
- for a string or list. | ''self'' || string, list, or map || object to geet the indexes of457 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 join459 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 shuffle346 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 sum369 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 of519 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 to507 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 into762 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 square2 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 for909 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 from1 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