The replication function. Take an array and an integer representing the number of times to replicate the array. Return a vector of the value repeated the specified number of times.
Parameters
- Object array - 1d-array to replicate.
- Integer n - the times to replicate array.
Return type
Object