エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
scala - add a tuple to listBuffer
I'd like to add a three-integer tuple to a ListBuffer. intuitively, my first try is the code snip... I'd like to add a three-integer tuple to a ListBuffer. intuitively, my first try is the code snippet 1, which has a syntax error,according to the compiler. Then, I've tried the snippet 2 and 3, both will work. So could someone explain to me why the code in snippet 1 syntactically wrong. snippet 1 import scala.collection.mutable.ListBuffer val b : ListBuffer[(Int, Int,Int)] = ListBuffer() b += (1,1



2015/06/05 リンク