More progress towards ResizeArray (#40)

This commit is contained in:
Patrick Stevens
2025-06-04 19:53:34 +01:00
committed by GitHub
parent fbae38acee
commit 15bae6f3aa
15 changed files with 787 additions and 240 deletions

View File

@@ -8,10 +8,10 @@ namespace HelloWorldApp
static int Main(string[] args)
{
var l = new List<int>();
l.Add(3);
l.Add(8);
l.Add(100);
var m = l.Select(x => x.ToString()).ToList();
// 2 + 103 + (1 + 3) = 109
// 2 + 108 + (1 + 3) = 114
return m.Count + l.Sum() + m.Select(x => x.Length).Sum();
}
}