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
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Ahmed ZamilAhmed Zamil shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base