To give a better idea of what I'm asking, lets say I have the string
String={a,b,c,d,e,f,g,h,i}
Is there any way I could have a function add 1 to the first n terms (lets say n=4) so that I get Result 1:
{a+1,b+1,c+1,d+1,e,f,g,h,i}
and then also have the function apply again to the next n terms excluding the first, but shifted over one such that we have Result 2:
{a, b+1,c+1,d+1,e+1,f,g,h,i}
I'm looking for a way to design a program that can read through an entire string of letters, and consistently apply an "If" statement to read a particular frame. Currently I am capable of applying the If statement to a given frame of size n, but if the frame is located within a longer string then I have no way of reading through each frame one at a time.
One suggestion I have had is to structure the language here such that after I read through the first frame and have my first result, to have the first letter in the string deleted, and have the If function applied again to the new "first" n terms.
For example, Result 1:
{a+1,b+1,c+1,d+1,e,f,g,h,i}
and then the second one would be Result 2:
{b+1,c+1,d+1,e+1,f,g,h,i}
I would also need a way to display all of these results, like big matrix of matrices! That's something I'll get to later though.
Any thoughts, advice, feedback, or help otherwise would be greatly appreciated! Please leave any questions here if my question wasn't very clear or worded properly and I'll get back to you as soon as possible.
P.S. I am very new here (first post, woo!!) So please excuse my naivete and lack of technical jargon!