{"author_name":"smallgeek","categories":["F#"],"blog_url":"https://smallgeek.hatenadiary.org/","url":"https://smallgeek.hatenadiary.org/entry/20111205/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsmallgeek.hatenadiary.org%2Fentry%2F20111205%2Fp1\" title=\"F# \u3067 LINQ \u5165\u9580 Distinct - SG\" 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%","image_url":null,"height":"190","description":"\u5165\u9580\u3068\u9298\u6253\u3063\u3066\u307e\u3059\u304c\u3001\u5165\u9580\u3057\u3066\u3044\u308b\u306e\u306f\u308f\u305f\u3057\u3067\u3059\u3002Distinct \u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u5185\u304b\u3089\u91cd\u8907\u3057\u305f\u8981\u7d20\u3092\u53d6\u308a\u9664\u3044\u305f\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 open System.Linq let cart = [ \"TaPL\", 6119; \"SICP\", 4830; \"TaPL\", 6220; \"SICP\", 4830; \"TaPL\", 6119;] cart.Distinct() |> Seq.iter (function | name, price -> printfn \"%s \u3092 %d\u5186\u3067\u8cfc\u5165\u3057\u307e\u3059\" name price) \u5b9f\u884c\u7d50\u679c TaPL \u3092 6119\u5186\u3067\u8cfc\u5165\u3057\u307e\u3059 SICP \u3092 48\u2026","published":"2011-12-05 00:00:00","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/smallgeek/","title":"F# \u3067 LINQ \u5165\u9580 Distinct","blog_title":"SG","provider_url":"https://hatena.blog","version":"1.0","type":"rich"}