mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 07:12:25 +01:00
Removed unnecessary spaces.
Updated wikipage Manifest array. (Signed-off-by:alexk). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2039 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -22,10 +22,13 @@ you can initialize `squares` through
|
||||
|
||||
This is simpler than the alternative, which would be to create the array explicitly and give a value to every element in turn:
|
||||
```eiffel
|
||||
-- Arguments to `make_filled` are: default value, lower bound, upper bound.
|
||||
create squares.make_filled (0, 1, 5)
|
||||
-- Arguments to `make_filled' are: default value, lower bound, upper bound.
|
||||
squares [1] := 1 ; squares [2] := 4 ; squares [3] := 9
|
||||
squares [4] := 16 ; squares [5] := 25
|
||||
squares [1] := 1
|
||||
squares [2] := 4
|
||||
squares [3] := 9
|
||||
squares [4] := 16
|
||||
squares [5] := 25
|
||||
```
|
||||
|
||||
The first form, with the manifest array, is shorter, but the effect is the same.
|
||||
@@ -33,8 +36,8 @@ The first form, with the manifest array, is shorter, but the effect is the same.
|
||||
Manifest arrays are normal arrays, not restricted in any way. You can for example add elements to them, as in
|
||||
|
||||
```eiffel
|
||||
-- Arguments to `force` are: value, position.
|
||||
squares.force (36, 6)
|
||||
-- Arguments to `force' are: value, position.
|
||||
```
|
||||
|
||||
which will resize the array to bounds 1 and 6.
|
||||
|
||||
Reference in New Issue
Block a user