From: Ehsanul Hoque Date: 2010-04-18T20:42:24+09:00 Subject: Re: Elegant Solution to a Seemingly Simple Problem? --_a50b8040-701a-464b-9403-c8805008b4a8_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > This way=2C "non-courses" appear as empty arrays. I still don't know how= =20 > to neatly get rid of the empty arrays... I tried .compact! but that=20 > doesn't seem to work. Try #flatten! instead. #compact! just gets rid of nil entries=2C and an emp= ty array is not the same as nil. - Ehsan =20 _________________________________________________________________ Hotmail has tools for the New Busy. Search=2C chat and e-mail from your inb= ox. http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID28326::T:WLMTAGL:O= N:WL:en-US:WM_HMP:042010_1= --_a50b8040-701a-464b-9403-c8805008b4a8_--