[REBOL] Re: parse rule for converting hex to decimal
From: compkarori:g:mail at: 22-Feb-2010 18:16
Additional comment:
The 'empty? test is also unnecessary as 'foreach already does that test.
foreach item parse/all text "$," [
append result to-integer debase/base item 16
]
2010/2/23 Gregg Irwin <gregg-pointillistic.com>:
> Hi Luke,
>
> LOE> if (0 < length? item) [
>
> EMPTY? is a very handy function for this idiom.
>
> -- Gregg
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
Graham Chiu
http://www.compkarori.co.nz:8090/
Synapse - the use from anywhere EMR.