The REPLICATE function returns an array with the given dimensions, filled with the scalar value specified as the first parameter.
Create D, a 5-element by 5-element array with every element set to the string "IDL" by entering:
REPLICATE can also be used to create arrays of structures. For example, the following command creates a structure named "emp" that contains a string name field and a long integer employee ID field:
employee = {emp, NAME:' ', ID:0L}