Table of Contents

# $EPIC: jot.txt,v 1.2 2006/08/01 03:50:35 sthalik Exp $

Synopsis:

$jot(<start> <stop> <interval>)

Technical:

Practical:

This function creates a list of all of the numbers between <start> and <stop>, with a step of <interval>. Ranges can be ascending or descending, depending on whether <stop> is greater than or less than <start>. You can iterate over the return value with FE or FOR i IN. Another popular use is to pass the return value to $chr() to create a range of ascii characters.

Returns:

Every <interval>th number between <start> and <stop>, inclusive.

Examples:

$jot(2 6)             returns "2 3 4 5 6"
$jot(2 7 2)           returns "2 4 6"
$jot(3 -2)            returns "3 2 1 0 -1 -2"
$jot(4)               returns ""  (empty string)
$jot(4 6 8)           returns "4"
$jot(a 4)             returns "0"