Push and pop are great but what if you need to insert an item in the middle or an array without overwriting the item? sub main() list = [1,2,3,4] ' Expectresult: [1,"foo",2,3,4] print arrayInsert( list, "middle", 1 ) : printList( list ) ...
Markdown supported · ⌘↵ to post
No responses yet.