I was attempting to re-write the $grid array-ref initialization in a more "Lazy" manner, using the "x" operator, but the implementation of that operator optimizes in such a way that the operand gets evaluated only once. I had to settle on "map" :
If anyone can accomplish this using the "x" operator in a non-obfu way, I'd love to hear it.my $grid=[ map {[ map {$init} 1..9 ]} 1..9 ];
"Income tax returns are the most imaginative fiction being written today." -- Herman Wouk
In reply to Re: SuDoKu solver
by NetWallah
in thread SuDoKu solver
by Brovnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |