Top "Repeat" questions

"repeat" refers to the action of doing something over again.

Repeat string to certain length

What is an efficient way to repeat a string to a certain length? Eg: repeat('abc', 7) -> 'abcabca' Here …

string python repeat
Repeat Character N Times

In Perl I can repeat a character multiple times using the syntax: $a = "a" x 10; // results in "aaaaaaaaaa" Is there …

javascript string character repeat
Create an array with same element repeated multiple times

In Python, where [2] is a list, the following code gives this output: [2] * 5 # Outputs: [2,2,2,2,2] Does there exist an easy way to …

javascript arrays repeat
Finding repeated words on a string and counting the repetitions

I need to find repeated words on a string, and then count how many times they were repeated. So basically, …

java string repeat
do-while loop in R

I was wondering about how to write do-while-style loop? I found this post: you can use repeat{} and check conditions …

r loops repeat do-while r-faq
Repeat rows of a data.frame

I want to repeat the rows of a data.frame, each N times. The result should be a new data.…

r dataframe rows repeat
make image( not background img) in div repeat?

I'm trying to repeat-y an image that's in a div and no background image but haven't figured how. Could you …

html css image repeat
Create sequence of repeated values, in sequence?

I need a sequence of repeated numbers, i.e. 1 1 ... 1 2 2 ... 2 3 3 ... 3 etc. The way I implemented this was: nyear <- 20 names &…

r repeat seq replicate
Fastest way to count number of occurrences in a Python list

I have a Python list and I want to know what's the quickest way to count the number of occurrences …

python list repeat
Do something every x minutes in Swift

How can I run a function every minute? In JavaScript I can do something like setInterval, does something similar exist …

ios swift setinterval intervals repeat