Advertisement
TheFastFish

broken

Oct 9th, 2016
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. DEF DELETE A[],I%
  2. IF !I% THEN
  3. 'commands don't return anything
  4. 'so, A[0] is destroyed
  5. RETURN SHIFT(A)
  6. ELSEIF I%==LEN(A)-1 THEN
  7. RETURN POP(A)
  8. ELSE
  9. COPY A,I%,A,I%+1,LEN(A)-I%
  10. RETURN POP(A)
  11. ENDIF
  12. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement