My first instinct there would be to:
I don't know whether that's a particularly efficient solution.
In reply to Re: move all 0s in an array to the beginning keeping other elements order same
by AppleFritter
in thread move all 0s in an array to the beginning keeping other elements order same
by anilmwr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |