Skip to content

Commit

Permalink
Create Iterate_Subsets.js
Browse files Browse the repository at this point in the history
  • Loading branch information
everthis authored Jul 2, 2024
1 parent c4e1d6c commit 0b3a2bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Iterate_Subsets.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
for (let subset=state; subset>0; subset=(subset-1)&state)
{
DoSomething(subset);
}

0 comments on commit 0b3a2bf

Please sign in to comment.