What's equivalent to C#'s select?

Marc jckj33 at gmail.com
Sun Jan 14 21:21:52 UTC 2018


give a list, how can I select only the elements of a range 
according to a condition give by a lamba function?

something like this:

> auto l = myList.select(e => e.id < 300);

it would return a range. Similar to C#'s select:

https://msdn.microsoft.com/en-us/library/bb548891(v=vs.110).aspx


More information about the Digitalmars-d-learn mailing list