T
TJO
Question:
Let us say we're using .Net 4.0, and IsPrime(int x) is a function that
determines whether a number is a prime number or not:
var simplelist = Enumerable.Range(1, 1000000);
var q = from x in simplelist.AsParallel()
where IsPrime(x)
select x;
foreach (var x in q)
{
Console.WriteLine(x);
}
In your opinion, what is interesting about the code listed above and
why is this important for the future of programming?
Let us say we're using .Net 4.0, and IsPrime(int x) is a function that
determines whether a number is a prime number or not:
var simplelist = Enumerable.Range(1, 1000000);
var q = from x in simplelist.AsParallel()
where IsPrime(x)
select x;
foreach (var x in q)
{
Console.WriteLine(x);
}
In your opinion, what is interesting about the code listed above and
why is this important for the future of programming?