{"provider_url":"https://hatena.blog","height":"190","categories":["Scala"],"version":"1.0","image_url":null,"description":"\u306f\u3066\u306a\u306bScala\u306e\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u6b32\u3057\u3044\u306a\u3042\u3002 Java\u3067\u4ee3\u7528\u306f\u5bc2\u3057\u3044\u3002 scala> val triple = (x: Int) => 3 *x triple: (Int) => Int = <function> scala> 1 to 10 map(triple) res0: RandomAccessSeq.Projection[Int] = RangeM(3, 6, 9, 12, 15, 18, 21, 24, 27, 30) scala> def map(lst:List[Int], fun: (Int) => Int) : List[Int] = | if (lst.isEm\u2026","title":"Functions as Parameters","author_url":"https://blog.hatena.ne.jp/yuichi_katahira/","width":"100%","blog_title":"\u4ed9\u53f0 Ruby Vim JavaScript \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30d7\u30ed\u30b0\u30e9\u30de","provider_name":"Hatena Blog","published":"2008-12-05 13:52:25","url":"https://katahirado.hatenablog.com/entry/20081205/1228452745","author_name":"yuichi_katahira","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatahirado.hatenablog.com%2Fentry%2F20081205%2F1228452745\" title=\"Functions as Parameters - \u4ed9\u53f0 Ruby Vim JavaScript \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30d7\u30ed\u30b0\u30e9\u30de\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://katahirado.hatenablog.com/","type":"rich"}