[REBOL] Re: Newbie example...
From: joel:neely:fedex at: 27-Sep-2001 9:59
If you just want to see the results:
foreach income [50000 60000 70000] [
print [income income * taxcoef]
]
(Notice the spaces, BTW)
If you want to keep the results:
incomes: [50000 60000 70000]
taxes: make block! length? incomes
foreach income incomes [
append taxes income * taxcoef
]
and lots of other variations!
HTH!
-jn-
mgkiourt wrote:
> >>taxcoef:0.40
> >>taxamount:income*taxcoef
>
> How will I take an outcome list for incomes of say, 50000,60000,70000?
> Thanks.
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
This sentence contradicts itself -- no actually it doesn't.
-- Doug Hofstadter
joel<dot>neely<at>fedex<dot>com