LINQ対応

ついにSystem.Query.dllが使えるようになりました。

using System;
using System.Collections.Generic;
using System.Query;

def nums = $ [0 .. 10]; 

def q = nums
    .Where (x => x % 2 == 0)
    .OrderByDescending (x => x)
    .Select (x => x) : IEnumerable [int];

foreach (x in q) Console.WriteLine (x);

/* 結果
10
8
6
4
2
0
 */

カタコトの英語でメールしまくってゴメンなさい。(^^;>Nemerleの中の人。