If the numbers in list "bar" are all the same, you can also do this:
put foo mod 4
-- [1, 2, 3, 0, 1, 2, 3]
_____
Carl West wrote:
> foo = [1,2,3,4,5,6,7]
> bar = [4,4,4,4,4,4,4]
> put foo mod bar
> -- [1, 2, 3, 0, 1, 2, 3]
Good luck,
Fumio Nonaka
Attain Corporation
Phone: +81-3-3255-4941
Fax: +81-3-3255-5998
mailto:[EMAIL PROTECTED]
http://www.attainj.co.jp
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
- <lingo-l> MOD tricks Carl West
- Fumio Nonaka
