Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のスニペットはコンパイルされ、正常に実行されます
ワークシートの一部として使用すると、エラーが表示されます
なんでこれお願いしますか?
これはおそらく単なるバグ/欠落機能です。
ちなみに、次のコードのようなジョイナーを記述して同じ動作を得ることができ、ワークシートの問題も回避できます。
def joiner(strings: List[String], separator: String = " ") = strings.mkString(separator)