ZipCartesianFuncs.pas
This commit is contained in:
parent
c4fd47128b
commit
3db5709101
11
InstallerSamples/WhatsNew/3_9_1/ZipCartesianFuncs.pas
Normal file
11
InstallerSamples/WhatsNew/3_9_1/ZipCartesianFuncs.pas
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
begin
|
||||
Zip(1..5,2..6).Println;
|
||||
Zip(1..5,2..6,(x,y) -> x+y).Println;
|
||||
Zip(1..5,2..6,3..7).Println;
|
||||
Zip(1..5,2..6,3..7,(x,y,z) -> x+y+z).Println;
|
||||
|
||||
Cartesian(1..4,3..5).Println;
|
||||
Cartesian(1..4,3..5,(x,y) -> x*y).Println;
|
||||
Cartesian(1..2,4..5,6..7).Println;
|
||||
Cartesian(1..2,4..5,6..7,(x,y,z) -> x*y*z).Println;
|
||||
end.
|
||||
Loading…
Reference in a new issue