Jump to content

Creating an Array: Difference between revisions

→‎E: delete, incorporated into Arrays#E
(rm JavaScript and LSE)
(→‎E: delete, incorporated into Arrays#E)
Line 358:
end</lang>
Delphi dynamic arrays have base 0 index.
 
==[[E]]==
In accordance with its guarantees of determinism, you can never have an ''uninitialized'' array in E.
 
<lang e>[] # immutable, empty
[1,9,17] # immutable, 3 elements
[].diverge() # mutable, empty
[].diverge(int) # mutable, integers only
[1,2,3,4].diverge() # mutable, with initial contents
([0] * 1024).diverge() # mutable, with 1024 zeroes</lang>
 
If you want an array of some mutable objects, see [[N distinct objects#E]].
 
==[[Fortran]]==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.