String patterns

When pattern matching on strings the <> operator can be used to match on strings with a specific prefix.

文字列でパターンマッチングをする場合、<> 演算子を使うと特定の接頭辞を持つ文字列にマッチさせることができます。

The pattern "hello " <> name matches any string that starts with "hello " and assigns the rest of the string to the variable name.

"hello " <> name というパターンは、"hello " で始まる文字列にマッチし、残りの文字列を変数 name に代入します。