{"blog_title":"maeshima\u306e\u65e5\u8a18","author_name":"maeshima","url":"https://maeshima.hateblo.jp/entry/20110406/1302105202","height":"190","author_url":"https://blog.hatena.ne.jp/maeshima/","provider_name":"Hatena Blog","description":"\u30e1\u30e2 Enumerable#cycle object.to_a.cycle \u3068\u540c\u3058 Enumerable#drop \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6700\u521d\u306e n \u500b\u3092\u6368\u3066\u305f\u914d\u5217\u3092\u8fd4\u3059\u3002\u975e\u7834\u58ca\u7684\u3002Enumerable#first\u3068\u5bfe\u3092\u306a\u3059\u30e1\u30bd\u30c3\u30c9 ary = [1, 2, 3] ary.drop(2) #=> [3] ary #=> [1, 2, 3] Enumerable#drop_while \u30d6\u30ed\u30c3\u30af\u5185\u3067\u6700\u521d\u306b\u507d\u3068\u306a\u3063\u305f\u8981\u7d20\u3088\u308a\u3082\u524d\u306e\u8981\u7d20\u3092\u6368\u3066\u305f\u914d\u5217\u3092\u8fd4\u3059 ary = [1,2,3,4,5,6,7,8,9,10] ary.drop_while {|item| item < 5} #=> [5, 6, 7, 8,\u2026","version":"1.0","categories":["ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaeshima.hateblo.jp%2Fentry%2F20110406%2F1302105202\" title=\"Enumerable\u305d\u306e\uff11 - maeshima\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","image_url":null,"title":"Enumerable\u305d\u306e\uff11","published":"2011-04-06 00:53:22","width":"100%","type":"rich","blog_url":"https://maeshima.hateblo.jp/"}