Creating an Array: Difference between revisions

(Added Haskell example)
Line 266:
integer a(0:9)
 
this mechanism can be extended to any numerical indices, and allowed number of dimensions (and of course to other data types than integers). For example:
 
real*8 a(25:29,12)
 
will be an two-dimensional, 5x12-array of 8-bytetype floatsreal, where the first dimension can be addressed numerically as 25, 26, 27, 28 or 29 (and the second dimension as 1 .. 12).
 
=={{header|Haskell}}==
Anonymous user