Open mia-riezebos opened 3 months ago
Could you please elaborate on how this would interact with reverse!?
Could you please elaborate on how this would interact with reverse!?
When skip is used, whilst your code is running in reverse skip should take you back the specified number of lines and re-execute them.
So this would be a thing?
print("-1")!
skip<3>
print("1")!
reverse!
would print?:
-1
-1
I would say reverse would just act line by line so if you
print("-1")!
skip<1>!
print("1")!
reverse!
it would print
-1
1
because it would run line by line and go like
print("-1")!
skip<1>!
// print("1")!
reverse!
print("1")!
skip<1>!
// print("-1")
unless of course reverse
behaviour is not expanded and just reverses all of the code in the current scope once, meaning the skip<>
behaviour should be mirrored too
print("-1")!
skip<1>!
print("1")!
reverse!
resulting in
1
if reverse
behaviour is expanded to bounceback expansion (idk if that's the proper term), then skip<>
could be used to break out of a new type of loop.
use skip to skip the specified amount of lines
You can use variables with
skip
if you want to change how many lines to skip dynamically