From: "Bilyk, Alex" Date: 2008-11-01T06:27:45+09:00 Subject: Re: Data Structs in Ruby Array can act as a stack as it has #pop and #last. It can also act as a queue as it also has #first and #shift. You can wrap this functionality in a Queue and Stack classes to make it more explicit if you like. -----Original Message----- From: edipofederle@gmail.com [mailto:edipofederle@gmail.com] Sent: Friday, October 31, 2008 11:35 AM To: ruby-talk ML Subject: Data Structs in Ruby Hello, How would the implementation of such a stack or queue, and Ruby, already has something "ready" to handle ... Thakns. I sorry but my english is not very good. -- Posted via http://www.ruby-forum.com/.