[REBOL] Re: parse rule for converting hex to decimal
From: compkarori:gmai:l at: 23-Feb-2010 18:26
Perhaps we need a set! datatype then ...
On Wed, Feb 24, 2010 at 8:57 AM, tomc <tom.conlin-gmail.com> wrote:
> in math, uniquenesses is the defining characteristic
> of sets that makes them so useful.
> Graham Chiu wrote:
>> Hi Gregg
>> I didn't realize that a set implies a collection of unique items.
>>>> help exclude
>> =A0 =A0 EXCLUDE set1 set2 /case /skip size
>> =A0 =A0 =A0Return the first set less the second set.
>> =A0 =A0 =A0EXCLUDE is a native value.
>> =A0 =A0 =A0set1 -- First data set (Type: series bitset)
>> =A0 =A0 =A0set2 -- Second data set (Type: series bitset)
>> =A0 =A0 =A0/case -- Uses case-sensitive comparison.
>> =A0 =A0 =A0/skip -- Treat the series as records of fixed size
>> =A0 =A0 =A0 =A0 =A0size -- (Type: integer)
>> On Wed, Feb 24, 2010 at 4:43 AM, Gregg Irwin <gregg-pointillistic.com> wrot
>>> Hi Graham,
>>> GC> foreach item exclude parse/all text "$," [ "" ] [
>>> GC> =A0 =A0append result to-integer debase/base item 16
>>> GC> ]
>>> I don't think that will work, unless you're guaranteed to have unique
>>> values in the source. EXCLUDE is a set operation, so you'll lose
>>> matching hex values.
>>> -- Gregg
>>> To unsubscribe from the list, just send an email to
>>> lists at rebol.com with unsubscribe as the subject.
>> Graham Chiu
>> Synapse - the use from anywhere EMR.
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
Synapse - the use from anywhere EMR.