Anonymous function: Difference between revisions

Content deleted Content added
List of languages: archived COBOL Reference Micro Focus Documentation
Miks2012 (talk | contribs)
Line 917:
begin
var n := 10000000;
var pp := Range(1,..n)
.Select(x ->Rec (Random(), Random()))
.Where(p ->sqr Sqr(p.Item1[0]) +sqr Sqr(p.Item2[1]) < 1)
.Count / n * 4;
Print(pp);
end.