I have a list of strings. For instance, the list is {"AbcXYZZ","DEFG","HIJKL","MNOPQR"}. I want to check if the current string's length is greater than 4, then it will divide string into N substrings(strings of length 4). The final output should be like this: {"AbcX","YZZ","DEFG","HIJK","L","MNOP","QR"}
I can use select function to process the pipeline, but I could not think of a way to add the substrings just after the parent string. Any help is appreciated