View in color | License | Download script | History | Other scripts by: ajmartin |
9-Oct 21:34 UTC
[0.06] 11.011k
[0.06] 11.011k
iota.rREBOL [
Title: "Iota"
Date: 3-Jul-2002
Name: 'Iota
Version: 1.0.0
File: %iota.r
Author: "Andrew Martin"
Purpose: {Makes a block containing a range of values, from Start to End.}
eMail: %Al--Bri--xtra--co--nz
Web: http://valley.150m.com
Example: [
iota 1 10
iota/by -4 10 2
iota #"A" #"F"
]
library: [
level: 'beginner
platform: none
type: 'tool
domain: none
tested-under: none
support: none
license: none
see-also: none
]
]
Iota: function [
{Makes a block containing a range of values, from Start to End.}
[catch throw]
Start [number! series! money! time! date! char!] "Starting value."
End [number! series! money! time! date! char!] "Ending value."
/By Bump [number! money! time! char!] "Amount to skip each time."
][
Block
][
throw-on-error [
all [
none? Bump
Bump: 1
]
Block: make block! 100
for I Start End Bump [
insert tail Block I
]
Block
]
] Notes
|