I suggest you ...

Add condition to foreach - in statement

It would be nice to add optional condition to foreach statement

var numbers = new int[] { 33, 81, 10, 24, 35, 50, 93, 43 };
foreach(var i in numbers; i > 50)
console.write(i + " > 50");

2 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Ahmed Zamil shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base