2015-10-17から1日間の記事一覧
【Commons】FileUtilsで1行のコードでファイル書き込み : mwSoft blog Javaだとこんな感じらしいですが、Scalaでもほぼ同じようなことができます。 // writeStringToFileを使うと、文字列を手軽にファイルに書き込めます // 見た限りでは追記モードはなさそ…
"scala filter multiple conditions" などでググると良い。 scala> (1 to 100).filter(_ % 3 == 0 && _ % 5== 0) <console>:12: error: missing parameter type for expanded function ((x$1, x$2) => x$1.$percent(3).$eq$eq(0).$amp$amp(x$2.$percent(5).$eq$eq(0))</console>…