Skip to content

Commit

Permalink
re #50 Add foreach_view_rev
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jun 16, 2023
1 parent c7d0d25 commit be9a264
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 133 deletions.
8 changes: 5 additions & 3 deletions src/gen_view_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
print("impl_view_tuple!(%d; " % i, end="")
for j in range(i-1):
print("V%d, " % j, end="")
print("V%d" % (i-1), end="")
print("; ", end="")
print("V%d; " % (i-1), end="")
for j in range(i-1):
print("%d, " % j, end="")
print("%d);" % (i-1))
print("%d; " % (i-1), end="")
for j in reversed(range(1, i)):
print("%d, " % j, end="")
print("0);")
Loading

0 comments on commit be9a264

Please sign in to comment.