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

13 lines
299 B
ObjectPascal

uses System, System.Collections.Generic;
procedure p<X,Y,Z>(a:IEnumerable<X>; b: Func<Y, IEnumerable<Z>>; c: Func<X, IEnumerable<Y>>);
begin
writeln(a.GetType());
writeln(b.GetType());
writeln(c.GetType());
end;
begin
var a := new List<string>;
p(a, x -> x.Split(), x -> x.Split());
end.