Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Antwort: Re: Strange "HEAD" behaviuor

From: petr:krenzelok:trz:cz at: 8-Nov-2000 11:14

[Sharriff--Aina--med-iq--de] wrote:
> I guessed as mich :-) donīt you think that its buggy logic from REBOL? I > thought it would be logical to write " HEAD series" just as the > the help docs states
It's not buggy and yet docs are all ok :-) Look - head is a function - it returns its value. If you don't assign the value to any word - it just returns its value to console :-) ->> head? ["a" "b" "c"] == true ->> head? tail ["a" "b" "c"] == false ->> head? head tail ["a" "b" "c"] == true here head? checks for the returned value .... Andrew is right, just reassign the value of word referring to series ... Cheers, -pekr-