Hi,
I have a list of string , like {"Apple","Orange","Mango"}. I need to repeat the string 3 times. When I give the following repeat command:
apply(repeat(3,_),{"Apple","Orange","Mango"})
I am getting the result as {"Apple","Apple","Apple","Orange","Orange","Orange", "Mango","Mango","Mango"}
But I want the result as {"Apple","Orange","Mango","Apple","Orange","Mango","Apple","Orange","Mango", }
How can I achieve this?
Thanks in advance
Discussion posts and replies are publicly visible
my question is the same but I want to choose different fruit for each iteration, repeat it can anyone help me with this question
Can you share sample outputs please?
sure,
I will explain my scenario, I am uploading more than 2 documents, So I want to repeat the primary key of the other table for the number of documents I am uploading (where the primary key is list ), In the same way we can add another list
you can try like this
repeat(length(ri!documents),ri!request.requestId)
or