[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
repeat function
Any ideas on how to implement a repeat funtion. I got as far
as:
es> fn repeat n args {
+ while {!~ $n 0} {
+ $args
+ n = `{expr $n - 1}
+ }
+ }
but its a bit slow ... :(
Dave.
o===============================================o +----+
David McNicol, | Strathclyde University, | |
3rd Yr Laser Physics, | SCOTLAND. |/--\| "I'm sorry Dave,
o===============================================o ||[]|| but I'm afraid
Internet: D.McNicol@ccsun.strath.ac.uk !talk ! |\--/| I can't do that"
JANET: D.McNicol@uk.ac.strath.ccsun !to me! | |
o===============================================o +----+