Linq+Февральский СТР
От: Flem1234  
Дата: 28.02.08 11:18
Оценка: 10 (1)
У меня этот код при компиляции выдает ошибку:
Error 1 there is no member named `Where' in list.Cons[int-] with type ?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Console;

module Program
{
  Main() : void
  {
    def l = [1, 2, 3, 4, 5];
    def r = l.Where(i=> i%2 ==0);
    WriteLine($"..$r");
    _ = ReadKey();
  }
}
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.