Array: Difference between revisions

Content added Content deleted
m (Not a task; remove erroneous task headers)
Line 78: Line 78:
</lang>
</lang>


=={{header|jq}}==
===[[jq]]===
jq's data types are the same as JSON's data types, and thus jq's arrays can hold any combination of JSON entities. jq arrays are indexed beginning with 0, so ["hello"][0] evaluates to "hello".
jq's data types are the same as JSON's data types, and thus jq's arrays can hold any combination of JSON entities. jq arrays are indexed beginning with 0, so ["hello"][0] evaluates to "hello".


Line 122: Line 122:
reduce range(2;n+1) as $i (1; . * $i) # => n!</lang>
reduce range(2;n+1) as $i (1; . * $i) # => n!</lang>


=={{header|REXX}}==
===[[REXX]]===
<lang rexx>/*REXX program snippets to show a variety (types) of "array" indexing. */
<lang rexx>/*REXX program snippets to show a variety (types) of "array" indexing. */