-
Notifications
You must be signed in to change notification settings - Fork 0
Blocks
João Pedro Neto edited this page Nov 9, 2020
·
15 revisions
Blocks are yöctọ code surrounded by brackets, { code }
These are associated with block functions, like conditionals and loops.
Blocks allow internal blocks.
Use | Fraction | Character | List | Observations | |
---|---|---|---|---|---|
F |
a{code}F |
pop a for î = 0..a-1 push î code î can be used inside |
NA |
pop a for î in a push î code
|
for loop progress variable î can be used inside |
G |
a{code}G |
pop a for î = a-1..0 push î code î can be used inside |
NA |
pop a for î in invert(a) push î code
|
inverted for loop progress variable î can be used inside |
W |
a{code}W |
while pop==True code |
ibid. | ibid. | while loop a non-empty list and any Chr are considered True |