summaryrefslogtreecommitdiffstats
path: root/doc/classes/Array.xml
Commit message (Collapse)AuthorAgeFilesLines
* Fix description of `Array.sort_custom()`Daylily-Zeleen2024-09-171-1/+1
| | | | (cherry picked from commit c6f7c8914956498fc1d414688d3ee9683148fa2b)
* Fix Array.sort_custom example codeaaronp642024-09-171-1/+1
| | | | | | Array.sort_custom descending sort example was comparing index 0, but had expected result based on comparing index 1. Updated to use index 1 consistently. (cherry picked from commit 39ca8b4e23c1d27273cfe31e2fa95da137f36739)
* Fix typo in Array code exampleTallivm2024-09-161-1/+1
| | | | (cherry picked from commit b516742358ba6171543399eecfc0af13e8f842d8)
* Fix typo in Array's sort() method descriptionEduardo Assis2024-07-271-1/+1
|
* Overhaul Array DocumentationMicky2024-07-051-230/+309
|
* Add PackedVector4Array Variant typeK. S. Ernest (iFire) Lee2024-05-031-0/+7
| | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Merge pull request #79075 from dalexeev/doc-typed-arraysRémi Verschelde2024-04-081-4/+27
|\ | | | | | | Update typed arrays documentation
| * Update typed arrays documentationDanil Alexeev2023-07-051-4/+27
| |
* | Merge pull request #78257 from Calinou/doc-packed-arrays-vs-typed-arraysRémi Verschelde2024-04-081-0/+1
|\ \ | | | | | | | | | Document the upsides and downsides of packed arrays versus typed arrays
| * | Document the upsides and downsides of packed arrays versus typed arraysHugo Locurcio2023-11-151-0/+1
| | |
* | | [Doc] Clarify `bsearch(_custom)` behaviorA Thousand Ships2024-03-091-0/+6
| | | | | | | | | | | | | | | * Added an example for the effect of `before` * Clarified the arguments to the custom callable can be either order
* | | Update class reference to include some keywordsRedMser2024-02-091-1/+1
| | | | | | | | | | | | More should be added in future PRs, wherever there is demand.
* | | Replace some "uncommon" words in class referenceMicky2024-01-151-1/+1
| | |
* | | Add performance note to Array.resize()MewPurPur2023-11-101-0/+1
|/ /
* | Merge pull request #80936 from curious-broccoli/fix-array-docYuri Sizov2023-08-251-5/+6
|\ \ | | | | | | | | | Clarify Array class methods that return error
| * | Clarify Array class methods that return errorcurious-broccoli2023-08-241-5/+6
| | | | | | | | | | | | related to #47406
* | | Document pick_random for empty arraysDavid Turner2023-08-181-1/+1
|/ /
* | Fix range error for `Array.slice`Ninni Pipping2023-07-071-0/+1
| |
* | Doctool: Remove version attribute from XML headerRémi Verschelde2023-07-061-1/+1
| | | | | | | | | | | | We don't use that info for anything, and it generates unnecessary diffs every time we bump the minor version (and CI failures if we forget to sync some files from opt-in modules (mono, text_server_fb).
* | Bump version to 4.2-devRémi Verschelde2023-07-051-1/+1
|/ | | | Keep on waitin'
* Update Array's `remove_at()` description to cover removing the last elementPeter Anderson2023-06-191-0/+1
|
* Overhaul the top sections of the class reference (Core classes)VolTer2023-05-191-3/+2
|
* Document how to make custom min/max for ArrayNinni Pipping2023-04-101-0/+11
|
* Remove outdated note about const in Dictionary and Array docsGeorge Marques2023-03-081-1/+0
|
* Bump version to 4.1-devRémi Verschelde2023-03-011-1/+1
| | | | Can't stop, won't stop, they said, huh?
* Merge pull request #71786 from raulsntos/dotnet/arrayRémi Verschelde2023-02-041-9/+17
|\ | | | | | | Sync C# Array with Core
| * Sync C# Array with CoreRaul Santos2023-01-301-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add `AddRange` method. - Add `Fill` method. - Add `Max` and `Min` methods. - Add `PickRandom` method. - Add `Reverse` method. - Add `RecursiveEqual` method. - Add `Sort` method. - Add `Slice` and `GetSliceRange` methods. - Add `IndexOf` overload that takes an index parameter. - Add `LastIndexOf` method. - Add `BinarySearch` method. - Add/update documentation.
* | GDScript: Fix issues with typed arraysDmitrii Maganov2023-01-311-9/+16
| |
* | Move Array:set_typed to internal GDExtension structure and unexposed it.bruvzg2023-01-301-11/+1
|/
* GDScript: Fix test for read-only state of constantsDmitrii Maganov2023-01-271-8/+7
|
* Add property usage to array indexerRaul Santos2023-01-191-1/+1
| | | | This makes the `Array` indexer show as returning `Variant` instead of `void` in the documentation.
* Merge pull request #70745 from rcorre/array_dup_docRémi Verschelde2023-01-101-1/+1
|\ | | | | | | Explain that Array.duplicate will not deep-copy Object.
| * Explain that Array.duplicate will not deep-copy Object.Ryan Roden-Corrent2022-12-301-1/+1
| | | | | | | | | | | | | | This was somewhat implied by specifically calling out nested arrays and dictionaries, but I was still unsure and had to test it myself. One might expect that `Resource` objects, which have a `duplicate` method, might be deep-copied.
* | Warn against erasing array elements while iterating.Ryan Roden-Corrent2023-01-061-0/+2
|/ | | | | | | | | | | | | | | | | Erasing array elements while iterating does not appear to be safe. For example, the following prints nothing: ``` var a := [0,1,2,3,4,5,6] for i in a: if i % 2 == 0: a.erase(i) else: print(i) ``` While this is often true for array implementations, it still seems worth documenting explicitly. I copied the wording from Dictionary.xml.
* Remove `Array.find_last()`Micky2022-11-251-7/+0
|
* Style: Misc docs and comment style and language fixesRémi Verschelde2022-11-021-4/+3
| | | | | | | | | | - Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
* Docs Clarify `Array.fill` behavior when reference type is passed inkleonc2022-10-301-0/+1
|
* Merge pull request #67444 from nonunknown/array_pick_randomMax Hilbrunner2022-10-211-0/+10
|\ | | | | Add ability to pick random value from array
| * add ability to pick random value from arrayNonunknown2022-10-201-0/+10
| |
* | Merge pull request #67001 from KoBeWi/🎲Max Hilbrunner2022-10-191-0/+10
|\ \ | |/ |/| Fill random docs
| * Fill random docskobewi2022-10-071-0/+10
| |
* | Document `Array.sort()` and `sort_custom()` using unstable sortingHugo Locurcio2022-10-081-1/+3
|/
* [GDExtension] Implement support for typed arrays.bruvzg2022-09-221-0/+54
|
* [doc] Fix grammar in class docs: less vs. fewer/lowerAndy Maloney2022-08-181-2/+2
|
* [doc] Use "param" instead of "code" to refer to parameters (8)Andy Maloney2022-08-121-19/+19
|
* Rename the argument tag to param in XML documentationYuri Sizov2022-08-081-53/+53
|
* Clarify `all` and `any` documentation for empty arraysDanil Alexeev2022-06-161-3/+7
|
* Add `any()` and `all()` methods to ArrayHugo Locurcio2022-05-251-0/+45
| | | | | These can be used as faster, more convenient shorthands to using `filter()` + `size()`.
* Merge pull request #59910 from rcorre/array-remove-docRémi Verschelde2022-04-051-1/+1
|\
| * Clarify Array.erase for nonexistant element.Ryan Roden-Corrent2022-04-051-1/+1
| | | | | | | | | | | | The docs specify that Array.remove does nothing if the index does not exist. Array.erase does not have a similar phrase, so it's unclear if erase will print an error, or silently do nothing.