…is that effectively you’re matching A-A or B-B. So each portal is paired to one of the same name.
That confused me in the challenge and in the solution.
For me it would be more intuitive to have a start/end portal identifier. But that would need a different implementation, possibly not using a foreach loop at all.
I wonder if perhaps a minor amend to the lecture could be worthwhile, to clarify this a bit.
But maybe I am just being a bit of a donut