Array: Difference between revisions
Content added Content deleted
m (→Fortran) |
Thundergnat (talk | contribs) m (Not a task; remove erroneous task headers) |
||
Line 78: | Line 78: | ||
</lang> |
</lang> |
||
== |
===[[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> |
||
== |
===[[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. */ |
||