(repeat list pattern)"2D pattern must be either a single number or a list of numbers of the same length as "2D list. If "2D pattern is a single number then "2D repeat simply repeats "2D list "2D pattern times. For example
> (repeat (list 1 2 3) 2) (1 2 3 1 2 3)If "2D pattern is a list then each element of "2D list is repeated the number of times indicated by the corresponding element of "2D pattern. For example
> (repeat (list 1 2 3) (list 3 2 1)) (1 1 1 2 2 3)In Section
(def density (repeat (repeat (list 1 2 3 4) (list 3 3 3 3)) 3)) (def variety (repeat (list 1 2 3) (list 12 12 12)))