Project

General

Profile

Up

tabRange

Create an integers array from an initial value, with a given size and with an in(de)crementation value.
It need not use
mktab before.

Prototype :

fun [I I I] tab I

  • I : the size. The size is definitely fixed at this time.
  • I : the initial value (the value of the index 0)
  • I : the incrementation value (or a negative value to decrease)

Return : tab I an array or nil if an error occurs.

See also

tabRangeF

Example

typeof tab = tab I;;
		 
fun main ()=	
	set tab = tabRange 5 1 2;	// the uneven integers less than 10
	...
	0;;