Skip to main content

Define a Sequence

In Decipad, a sequence is a list of quantities separated by a step.

Creating a sequence

You can create a sequence by typing [start .. end by step] like this:

As you can see, in Decipad, sequences can be expressed similarly to ranges, but adding a by step.

Sequences with units

Date sequences

You can have sequences of dates by specifying the step:

The step can be any of millennium, century, decade, year, quarter, month, day, hour, minute, second or millisecond:

Functions on lists

Here is a list of all the functions that work on lists.