Chapter 9. More Advanced Data Structures


8.4. Conclusion

We've taken a good look here at arrays, hashes, and enumerables in general. We've seen some similarities between arrays and hashesmost of which are due to the fact that both mix in Enumerableas well as some differences. We've looked at converting between arrays and hashes, and we've seen some interesting ways of extending their standard behavior.

We've examined common methods of iteration such as each_slice and each_cons. We've also seen how enumerator and generator objects work.

In Chapter 9, we again look at high-level data structures. But these will be slightly higher level and may not necessarily be provided as part of the Ruby core or standard libraries. These include sets, stacks, queues, trees, and graphs.




The Ruby Way(c) Solutions and Techniques in Ruby Programming
The Ruby Way, Second Edition: Solutions and Techniques in Ruby Programming (2nd Edition)
ISBN: 0672328844
EAN: 2147483647
Year: 2004
Pages: 269
Authors: Hal Fulton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net