{"description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 using System; using System.Collections.Generic; using System.Linq; public static class IEnumerableExtensions { #region Nearest /// <summary> /// \u76ee\u7684\u306e\u5024\u306b\u6700\u3082\u8fd1\u3044\u5024\u3092\u8fd4\u3057\u307e\u3059 /// </summary> public static int Nearest( this IEnumerable<int> self, int target ) { var min = self.Min( c => Math.Abs( c - target )\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2014%2F09%2F29%2F102014\" title=\"\u3010C#\u3011\u914d\u5217\u3084\u30ea\u30b9\u30c8\u304b\u3089\u76ee\u7684\u306e\u5024\u306b\u6700\u3082\u8fd1\u3044\u5024\u3092\u53d6\u5f97\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9 \u305d\u306e2 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-09-29 10:20:14","provider_name":"Hatena Blog","title":"\u3010C#\u3011\u914d\u5217\u3084\u30ea\u30b9\u30c8\u304b\u3089\u76ee\u7684\u306e\u5024\u306b\u6700\u3082\u8fd1\u3044\u5024\u3092\u53d6\u5f97\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9 \u305d\u306e2","height":"190","url":"https://baba-s.hatenablog.com/entry/2014/09/29/102014","width":"100%","type":"rich","blog_url":"https://baba-s.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/baba_s/","provider_url":"https://hatena.blog","categories":["C#","C# - \u62e1\u5f35\u30e1\u30bd\u30c3\u30c9"],"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20180826/20180826160156.png","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","author_name":"baba_s","version":"1.0"}