Array: Difference between revisions

13 bytes added ,  16 years ago
m
no edit summary
(not a task; don't use {{header}})
mNo edit summary
Line 7:
Array programming languages supply special support for arrays. In them most actions apply to entire arrays, so programs in such languages often lack specific index reference.
 
In most programming languages, arrays are accessed by using the array brackets <code>[</code> and <code>]</code>, e.g. in <code>A[i]</code>, but exceptions are [[Rexx]], instead using the dot operator <code>.</code>, such as in <code>A.i</code>, [[Fortran]], [[Ada]] and [[BASIC]] which use round parentheses <code>A(i)</code>, and of course in the [[LISP|lisps]] which uses constructions like <code>(ELT A n)</code> for accessing and <code>(SETA A n new_val)</code> for setting (Interlisp) or <code>(vector-ref A n)</code> for accessing and <code>(vector-set! A n new_val)</code> for setting (Scheme). No bracket indexing occurs in [[J]], an array language; instead, the normal syntax of function creation and function calling applies.
 
==[[C]]==
Anonymous user