2010-11-09 Arrayのcompact ruby プログラミング言語 Ruby リファレンスマニュアル compact は self から nil である要素を取り除いた新しい配列を返します。