pascalabcnet/_Presentations/2015 New Features/Programs/25_lambda1.pas

6 lines
92 B
ObjectPascal
Raw Permalink Normal View History

2015-05-14 22:35:07 +03:00
begin
var a := Seq(1,5,2,6,7);
a.Println;
var b := a.Select(x->x*x);
b.Println;
end.