回答編集履歴
1
見直しキャンペーン中
test
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
`Remove`は最初に出現したものいっこだけ削除のはずですが、逆にどういうコードを書いているんでしょうか?
|
4
4
|
[List<T>.Remove(T) メソッド (System.Collections.Generic) | Microsoft Docs](https://docs.microsoft.com/ja-jp/dotnet/api/system.collections.generic.list-1.remove)
|
5
5
|
|
6
|
-
```
|
6
|
+
```cs
|
7
7
|
{
|
8
8
|
// list2を順に回しlist1に最初に出現したものを削除
|
9
9
|
var list1 = new List<int> { 1, 2, 3, 1, 3 };
|