{"provider_url":"https://hatena.blog","width":"100%","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamata78.hatenablog.com%2Fentry%2F2023%2F07%2F13%2F183140\" title=\"Kotlin Coroutines \u975e\u540c\u671f\u51e6\u7406 - \u6c17\u8efd\u306b\u697d\u3057\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u904a\u3076\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u6c17\u8efd\u306b\u697d\u3057\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u904a\u3076","title":"Kotlin Coroutines \u975e\u540c\u671f\u51e6\u7406","provider_name":"Hatena Blog","height":"190","author_name":"tamata78","url":"https://tamata78.hatenablog.com/entry/2023/07/13/183140","image_url":null,"description":"\u975e\u540c\u671f\u51e6\u7406\u3067\u7528\u3044\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 Sequence val numberSeq = (1..3).asSequence() val resultSeq = numberSeq .map { println(\"1st map: $it\"); it + 1 } .map { println(\"2nd map: $it\"); it + 2 } .toList() println(resultSeq) Sequence\u306f\u3001\u9045\u5ef6\u30ea\u30b9\u30c8\u306e\u305f\u3081toList()\u304c\u51e6\u7406\u3055\u308c\u308b\u6bb5\u968e\u3067\u51e6\u7406\u304c\u51fa\u529b\u3055\u308c\u308b\u3002 map\u306e\u51e6\u7406\u304c\u3044\u304f\u3089\u547c\u3070\u308c\u3066\u3082println\u306f\u5b9f\u884c\u3055\u308c\u305a\u3001toList\u304c\u547c\u3070\u308c\u305f\u3068\u304d\u306b\u306f\u3058\u3081\u3066\u5b9f\u884c\u3055\u308c\u308b \u4ee5\u4e0b\u306e\u3088\u2026","categories":["kotlin","\u975e\u540c\u671f"],"author_url":"https://blog.hatena.ne.jp/tamata78/","blog_url":"https://tamata78.hatenablog.com/","published":"2023-07-13 18:31:40","version":"1.0"}