We have already used the functions ` iseq` and ` rseq` to generate
equally spaced sequences of integers and real numbers. The function
` repeat` is useful for generating sequences with a
particular pattern. The general form of a call to ` repeat` is

(repeat list pattern)

> (repeat (list 1 2 3) 2) (1 2 3 1 2 3)If

> (repeat (list 1 2 3) (list 3 2 1)) (1 1 1 2 2 3)In Section 6.2 below I generate the variables

(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)))

Tue Jan 21 15:04:48 CST 1997