Enumerable ToList - FireDragon91245/Lua-Linq GitHub Wiki

enumerable:tolist

Materializes the current enumerable into a list.

Overloads

enumerable<T>:tolist(): list<T>

Examples

local values = linq.list(1, 2, 3):where("n => n >= 2"):tolist()
local list_copy = linq.dict({ iron = 4, copper = 7 }):values():tolist()