Can you guys tell me if I understand what the power operator actually does?
The way I see it, it calls a function for a certain number of times, or
until the function returns the same thing as its input.

I made an implementation of it, to have something to experiment with. Can
you guys tell me if I did it right?

Z←N (OP powerop) V;I
→(0≠⎕NC 'N')/skip
N←¯1
skip:
I←0
Z←V
next:
→(((N≥0)∧I≥N) ∨ (I>0)∧Z≡V)/end
Z←OP V←Z
I←I+1
→next
end:


Regards,
Elias

Reply via email to