Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

Repeat the given string exactly n times

// Repeat the given string exactly n times
import java.util.Collections
object StringRepeat {
  def repeatStr(times: Int, str: String): String = {
    str * times
  }
}
 
PREVIOUS NEXT
Tagged: #Repeat #string #times
ADD COMMENT
Topic
Name
1+1 =