Content deleted Content added
→Ruby: copy editing |
→S-Lang: copy editing |
||
Line 1,671:
Ruby also supports many other useful operations on hashes, such as merging hashes, selecting or rejecting elements that meet some criteria, inverting (swapping the keys and values), and flattening a hash into an array.
===
[[S-Lang (programming language)|S-Lang]] has an associative array type
<syntaxhighlight lang="text">
Line 1,683 ⟶ 1,681:
</syntaxhighlight>
You can also loop through an associated array in a number of ways
<syntaxhighlight lang="text">
|