Untitled
unknown
plain_text
2 years ago
586 B
7
Indexable
var paths = from exitToChest in pathOnStart
join startToChest in pathOnChestToExit
on exitToChest.Value equals startToChest.Value
select new { exitToChest = exitToChest, startToChest = startToChest, Length = exitToChest.Length + startToChest.Length };
var path = pathOnStart
.Select(g => ( g, pathOnChestToExit.Where(p => p.Value == g.Value).First() ));
var path2 = pathOnStart
.Join(pathOnChestToExit,
p => p.Value,
g => g.Value,
(p, g) => new { p, g, l = p.Length + g.Length });Editor is loading...
Leave a Comment