Previous Up Next

6.39.2  Making a sequence or a list: seq $

The seq command or $ operator can create a sequence or a list.

To create a sequence:

Alternatively, a sequence can be created with the infixed $ operator. Namely, expr$ k=a..b returns the sequence formed by the values of expr as k changes from a to b. As a special case, expr$ n creates a sequence consisting of n copies of expr.

There are two ways to create a list with seq.

First:


Second:

Remark.


Examples.


Examples of sequences being used.


Previous Up Next