pascalabcnet/TestSuite/lambdas_in_generics_1.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

9 lines
181 B
ObjectPascal

function psd<T>(e: IEnumerable<T>): IEnumerable<T>; where T:constructor;
begin
result := e.OrderBy(x -> x);
end;
begin
var ttt := psd(Seq(1,2,4,2,3,5,6));
writeln(ttt);
end.