ecl-logo Documentation

Repeat

Repeat[item,n]list

generates a list of n repeated items.

Repeat[{item},n]list

generates a list of n repeated items.

Details

  • If provided a singleton list, removes that item from the list before repeating it.
  • Input
    Output

Examples

Basic Examples  (3)

Generate a list of "A" Repeated 5 times:

Repeate a list of {1,2,3} 5 times:

If provided with a list of one item, Repeate repeates the item n times: