mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Updated gdscript (markdown)
parent
33f8082b1e
commit
ae9e61c748
@ -248,9 +248,9 @@ Arrays are allocated linearly in memory, so they are fast, but very large arrays
|
||||
Arrays can be appended using the + operator:
|
||||
|
||||
```python
|
||||
arr=[1,2,3]+[4,5,6]
|
||||
var arr=[1,2,3]+[4,5,6]
|
||||
#is the same as
|
||||
arr[1,2,3,4,5,6]
|
||||
var arr=[1,2,3,4,5,6]
|
||||
```
|
||||
|
||||
There are specialized arrays for some built-in datatypes which do not suffer from this and use less memory, but they are atomic and generally run a little slower, so they are only justified for very large amount of data: [RawArraw](class_rawarray), [IntArray](class_intarray), [FloatArray](class_floatarray), [StringArray](class_stringarray), [Vector2Array](class_vector2array), [Vector3Array](class_vector3array), [ColorArray](class_colorarray).
|
||||
|
Loading…
Reference in New Issue
Block a user