結果 : ruby get first n elements of array