Very useful when you need to do logic on Iterables. Feels almost like python.
For example, in a game you may have a situation where you maintain a runtime list of objects with a certain property but you want to filter by some other property
For example, in a game you may have a situation where you maintain a runtime list of objects with a certain property but you want to filter by some other property
For my game it's irrelevant because most linq loops are only triggered by events so there's no loops running on every frame.
For example, lets say you have state machine based AI, and a scripted event triggers tells an enemy starship to change allegiance. The enemy starship then scans a runtime set of enemy factions using LINQ that are within 3 km to identify new targets to attack.