You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since LINQ queries execution is deferred, you can chain different LINQ operations together to produce more complex expressions. You compose queries in method syntax by chaining the method calls together. And because a query variable does not store the results of the query, you can modify it or use it as the basis for a new query at any time, even after it has been executed.
111
111
112
112
````javascript
113
-
Enumerable.range(0, 1000)
113
+
mx.range(0, 1000)
114
114
.where("t => t % 2 == 0")
115
115
.orderByDescending("t => t")
116
116
.take(10)
117
117
.toArray();
118
118
````
119
119
120
-
In the example above, `Enumerable.range` method is used to create 1000 integer numbers starting from 0, then filter even numbers, sort the result in descending order and only take 10 of them. The result is the last 10 even numbers less than 1000:
120
+
In the example above, `mx.range` method is used to create 1000 integer numbers starting from 0, then filter even numbers, sort the result in descending order and only take 10 of them. The result is the last 10 even numbers less than 1000:
0 commit comments