サクサク読めて、アプリ限定の機能も多数!
reduce に cannot modify ... with immutable members って怒られる 登録日は 12/22 ですが、22 == 0x16 なので 12/16 の記事ということにしましょう。 これがコンパイル通らない。 struct M { immutable int value; } auto f(M[] xs) { import std.algorithm : reduce; ret
kasumani のブックマーク 2013/12/25 19:00
reduce に cannot modify ... with immutable members って怒られる - Qiitareduce に cannot modify ... with immutable members って怒られる 登録日は 12/22 ですが、22 == 0x16 なので 12/16 の記事ということにしましょう。 これがコンパイル通らない。 struct M { immutable int value; } auto f(M[] xs) { import std.algorithm : reduce; ret2013/12/25 19:00
このブックマークにはスターがありません。 最初のスターをつけてみよう!
qiita.com/majiang@github2013/12/25
struct M { immutable int value; } auto f(M[] xs) { import std.algorithm : reduce; return xs.reduce!((x, y) => M(x.value + y.value)); } phobos\std\algorithm.d(763): Error: cannot modify struct resul...
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
reduce に cannot modify ... with immutable members って怒られる 登録日は 12/22 ですが、22 == 0x16 なので 12/16 の記事ということにしましょう。 これがコンパイル通らない。 struct M { immutable int value; } auto f(M[] xs) { import std.algorithm : reduce; ret
kasumani のブックマーク 2013/12/25 19:00
このブックマークにはスターがありません。
最初のスターをつけてみよう!
reduce に cannot modify ... with immutable members って怒られる - Qiita
qiita.com/majiang@github2013/12/25
struct M { immutable int value; } auto f(M[] xs) { import std.algorithm : reduce; return xs.reduce!((x, y) => M(x.value + y.value)); } phobos\std\algorithm.d(763): Error: cannot modify struct resul...
1 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /