Xcode – How to add two elements repeatably after certain index to an Array
There is an array var sampleArray = ["1","2","3","4","5","6","7","8","9","10"] there are two elements "header " and "footer" I want to add these two elements such way that after every 3rd index of original array these two are to be appended Expected…