jaytea commented on a Page, Count (down|up)  -  Nov 07, 2010

Download's method, in its simplicity, is arguably the best method here (as far as just performing the count up or count down is concerned) :P it can be useful to abstract and combine in the way sunslayer did, but oftentimes it's just not suitable and leads to less efficient and less readable code.

that said, here's another method (without any validation) that uses $timer().reps as a counter:

alias count .timercount $calc(($1 - $2) ^ 2 ^ .5 + 1) 1 say $!calc( $2 $iif($1 < $2, -) +$timer(count).reps)
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.