{"categories":["\u6280\u8853","scala"],"author_url":"https://blog.hatena.ne.jp/Windymelt/","author_name":"Windymelt","image_url":null,"height":"190","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F2023%2F02%2F09%2F172136\" title=\"Scala \u30eb\u30fc\u30d7\u3057\u3066\u751f\u6210\u3059\u308b Ruby\u306etimes\u3068\u540c\u3058\u3088\u3046\u306a\u3084\u3064 \u4ee4\u548c\u6700\u65b0\u7248 Iterator.continually\u3092\u4f7f\u3048 - Lambda\u30ab\u30af\u30c6\u30eb\" 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%","provider_url":"https://hatena.blog","url":"https://blog.3qe.us/entry/2023/02/09/172136","version":"1.0","published":"2023-02-09 17:21:36","blog_title":"Lambda\u30ab\u30af\u30c6\u30eb","provider_name":"Hatena Blog","title":"Scala \u30eb\u30fc\u30d7\u3057\u3066\u751f\u6210\u3059\u308b Ruby\u306etimes\u3068\u540c\u3058\u3088\u3046\u306a\u3084\u3064 \u4ee4\u548c\u6700\u65b0\u7248 Iterator.continually\u3092\u4f7f\u3048","description":"\u6307\u5b9a\u3057\u305f\u500b\u6570\u306e\u4f55\u304b\u304c\u6b32\u3057\u3044\u3053\u3068\u304cScala\u3067\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u3002 \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u307b\u3057\u3044\u3068\u304d to\u3092\u4f7f\u3046\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002 (0 to 10) map (n => s\"count $n\") // => Seq(\"count 0\", \"count 1\", ..., \"count 10\") \u500b\u6570\u3060\u3051\u6307\u5b9a\u3057\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3044\u3089\u306a\u3044\u3068\u304d Seq.fill\u3092\u4f7f\u3046\u3068\u826f\u3044\u3067\u3057\u3087\u3046(\u66ab\u5b9a\u4e00\u4f4d)\u3002 \u6587\u5b57\u6570\u306e\u77ed\u3055\u3067\u8a00\u3046\u3068 Seq.fill(n)(..) \u3082\u3042\u308a\u307e\u3059\u306d\u2014 TATSUNO Yasuhiro (@exoego) 2023\u5e742\u67089\u65e5 val rands = Seq.fill(42)(scala.util.Random\u2026","blog_url":"https://blog.3qe.us/"}