code_junkie

Empty while loop with linq/lamba expression

Nov 13th, 2011
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. private Puzzle RecursiveSolve(Puzzle p, int idx)
  2. {
  3. // start with simple filter to narrow down recursive paths
  4. // puzzle is still solved without this line, but it takes at least 20x longer
  5. while( p.board.Any(cell => cell.FilterPossibles()) ); // while(); <- empty while loop is intentional
Add Comment
Please, Sign In to add comment