エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Case class to map in Scala
Is there a nice way I can convert a Scala case class instance, e.g. case class MyClass(param1: St... Is there a nice way I can convert a Scala case class instance, e.g. case class MyClass(param1: String, param2: String) val x = MyClass("hello", "world") into a mapping of some kind, e.g. getCCParams(x) returns "param1" -> "hello", "param2" -> "world" Which works for any case class, not just predefined ones. I've found you can pull the case class name out by writing a method that interrogates the u
2013/02/05 リンク