{"type":"rich","blog_title":"taedium\u306e\u65e5\u8a18","url":"https://taedium.hatenadiary.org/entry/20110218/p1","height":"190","provider_url":"https://hatena.blog","blog_url":"https://taedium.hatenadiary.org/","version":"1.0","author_url":"https://blog.hatena.ne.jp/taedium/","image_url":null,"title":" \u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u5217\u6319\u3057\u3064\u3064\u6700\u5f8c\u306e\u8981\u7d20\u304b\u3069\u3046\u304b\u5224\u5b9a\u3059\u308b 2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaedium.hatenadiary.org%2Fentry%2F20110218%2Fp1\" title=\" \u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u5217\u6319\u3057\u3064\u3064\u6700\u5f8c\u306e\u8981\u7d20\u304b\u3069\u3046\u304b\u5224\u5b9a\u3059\u308b 2 - taedium\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>","width":"100%","published":"2011-02-18 00:00:00","author_name":"taedium","description":"\u6628\u65e5\u306e\u4ef6\u3001Seq.pairwise\u306e\u30b3\u30fc\u30c9\u3092\u3061\u3087\u3063\u3068\u5909\u66f4\u3057\u305f\u95a2\u6570\u3092\u4f5c\u3063\u3066\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002 pairwise\u3092\u5909\u5f62\u3057\u305f\u30b3\u30fc\u30c9 \u305f\u3068\u3048\u3070peek\u3068\u3044\u3046\u95a2\u6570\u306b\u3059\u308b\u3002\u30b7\u30b0\u30cd\u30c1\u30e3\u306f val peek : seq -> seq\u3002module Seq = let peek (source:seq<'T>) = seq { use ie = source.GetEnumerator() if ie.MoveNext() then let iref = ref ie.Current while ie.MoveNext() do let j = ie.Current yield (!iref, true) i\u2026","categories":["F#"],"provider_name":"Hatena Blog"}