Section 4.1. Introduction
Recipe 4.2. Specifying an Array Not Beginning at Element 0
Recipe 4.3. Storing Multiple Elements per Key in an Array
Recipe 4.4. Initializing an Array to a Range of Integers
Recipe 4.5. Iterating Through an Array
Recipe 4.6. Deleting Elements from an Array
Recipe 4.7. Changing Array Size
Recipe 4.8. Appending One Array to Another
Recipe 4.9. Turning an Array into a String
Recipe 4.10. Printing an Array with Commas
Recipe 4.11. Checking if a Key Is in an Array
Recipe 4.12. Checking if an Element Is in an Array
Recipe 4.13. Finding the Position of an Element in an Array
Recipe 4.14. Finding Elements That Pass a Certain Test
Recipe 4.15. Finding the Largest or Smallest Valued Element in an Array
Recipe 4.16. Reversing an Array
Recipe 4.17. Sorting an Array
Recipe 4.18. Sorting an Array by a Computable Field
Recipe 4.19. Sorting Multiple Arrays
Recipe 4.20. Sorting an Array Using a Method Instead of a Function
Recipe 4.21. Randomizing an Array
Recipe 4.22. Shuffling a Deck of Cards
Recipe 4.23. Removing Duplicate Elements from an Array
Recipe 4.24. Finding the Union, Intersection, or Difference of Two Arrays
Recipe 4.25. Finding All Element Combinations of an Array
Recipe 4.26. Finding All Permutations of an Array
Recipe 4.27. Program: Printing an Array in a Horizontally Columned HTML Table