Yes, you're right and I'm sorry for the noise. What confused me is the
term data set, as if it were something in Rebol.
Thanks, daniel
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 12, 2000 1:44 AM
> Subject: [REBOL] bug ?
>>
>> Difference is a high-level function that returns the differences
>> between two datasets. But datasets do not exist in Rebol
>> (they're not a datatype), so difference accepts any series including
>> strings. However, when you use it on the content of two files (read
>> %file), you get a strange result :
>>
>> >> difference file1 file2
>> == {:"39%.@{}!(^^4567)~}
>>
>>From the Core release docs addendum, DIFFERENCE renamed EXCLUDE, though
> DIFFERENCE is retained as a synonym for EXCLUDE.
> Why do you say it won't work? It appears to be correctly returning only the
> different characters as would be expected when dealing with a string. What
> it returns depends on what the series is made up of.
> difference "ABCDEFG" "ABCDEFGH"
> ==H
> difference [1 2 3 4] [1 2 3 4 5 8]
> == [5 8]
> difference ["the" "cat" "sat"] ["the" "cat" "sat" "on" "the" "mat"]
> == ["on" "mat"]
> Cheers,
> Allen K
--
[EMAIL PROTECTED]
http://perso.worldonline.fr/mutant