{"image_url":null,"title":"Scala\u3067\u5909\u6570\u306b\u5165\u3063\u305f\u5024\u305d\u306e\u3082\u306e\u306b\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u3055\u305b\u308b\u3068\u304d\u306f\u5909\u6570\u3092\u30d0\u30c3\u30af\u30c6\u30a3\u30c3\u30af\u3067\u56f2\u3046\u3068\u3088\u3044","author_url":"https://blog.hatena.ne.jp/Windymelt/","categories":["\u6280\u8853","scala"],"url":"https://blog.3qe.us/entry/2025/04/24/213019","height":"190","author_name":"Windymelt","blog_title":"Lambda\u30ab\u30af\u30c6\u30eb","provider_url":"https://hatena.blog","description":"Scala\u306e\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u306f\u5909\u6570\u3092\u4f7f\u3063\u3066\u5206\u5272\u4ee3\u5165\u304c\u3067\u304d\u308b\u3002 val xs = 1 :: 2 :: 3 :: Nil xs match { case head :: tail => s\"head is $head\" // => \"head is 1\" case _ => \"not found\" } \u3053\u308c\u306fxs\u306b\u5bfe\u3057\u3066\u307e\u305ahead :: tail \u3068\u3044\u3046\u5f0f\u306b\u30de\u30c3\u30c1\u304c\u8a66\u307f\u3089\u308c\u3001head\u306b\u306f1\u304c\u3001tail\u306b\u306f2 :: 3 :: Nil\u304c\u30de\u30c3\u30c1\u3059\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u5909\u6570\u306b\u4ee3\u5165\u3055\u308c\u3001\u5f8c\u7d9a\u306e\u5f0f\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002 \u305d\u3057\u3066s\"head is $head\"\u3068\u3044\u3046\u5f0f\u304c\u8a55\u4fa1\u3055\u308c\u308b\u304c\u3001\u3053\u3053\u3067\u306fhead\u306f1\u306b\u306a\u3063\u3066\u2026","blog_url":"https://blog.3qe.us/","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F2025%2F04%2F24%2F213019\" title=\"Scala\u3067\u5909\u6570\u306b\u5165\u3063\u305f\u5024\u305d\u306e\u3082\u306e\u306b\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u3055\u305b\u308b\u3068\u304d\u306f\u5909\u6570\u3092\u30d0\u30c3\u30af\u30c6\u30a3\u30c3\u30af\u3067\u56f2\u3046\u3068\u3088\u3044 - 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%","version":"1.0","published":"2025-04-24 21:30:19"}