Iterate through a data structure and returns a string represention of that structure.
Create an array from the elements of a container, and sort it using Array#sort. Optionally takes a block which can be used to sort the array.
Create a string from the elements of a container, separating the elements using separator. Each of the elements is converted to a string using to_s before adding it to the string.
TODO: This isn't quite what array does:
irb(main):005:0> a = [[[1, 2], [3, 4]], [5, 6]] [[[1, 2], [3, 4]], [5, 6]] irb(main):006:0> a.join(',') "1,2,3,4,5,6"
|separator||the string to use as a separator|
Returns: the string that was created.
Determine if two containers are "equal." Two containers are equal if they have the same length and each corresponding element is equal. No type checking is done between the two containers. Both containers must have an each() method defined.
|other||the container to compare to..|
Returns: true if the containers compare equal, false otherwise.