{"author_name":"mzp","categories":["Ruby","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"height":"190","url":"https://mzp.hatenadiary.org/entry/20090717/prelude","title":"Ruby\u3067Haskell\u98a8\u306e\u30ea\u30b9\u30c8\u64cd\u4f5c","image_url":null,"blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/mzp/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090717%2Fprelude\" title=\"Ruby\u3067Haskell\u98a8\u306e\u30ea\u30b9\u30c8\u64cd\u4f5c - \u307f\u305a\u3074\u30fc\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_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","blog_url":"https://mzp.hatenadiary.org/","type":"rich","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e622\u3002Ruby\u306bHaskell\u98a8\u306e\u30ea\u30b9\u30c8\u64cd\u4f5c\u3092\u79fb\u690d\u3057\u307e\u3057\u305f\u3002 Ruby\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u308b\u3068\u304d\u306b\u3001take_while\u3068\u304b\u304c\u6b32\u3057\u304f\u306a\u308b\u3053\u3068\u304c\u4f55\u5ea6\u304b\u3042\u3063\u305f\u306e\u3067\u3001\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u30e1\u30bd\u30c3\u30c9\u5185\u90e8\u3067\u526f\u4f5c\u7528\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u304c\u4f55\u500b\u304b\u3042\u308a\u307e\u3059\u304c\u3001\u5916\u304b\u3089\u898b\u305f\u3089\u3061\u3083\u3093\u3068Functional\u306a\u306e\u3067\u8a31\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u4f7f\u3044\u65b9 p (1..4).take(2) p (1..4).drop(2) \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 #! /opt/local/bin/ruby -w # -*- mode:ruby; coding:utf-8 -*- # # prelude.rb - # # Copyright(C) 20\u2026","published":"2009-07-17 00:00:00"}