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

[REBOL] Re: The truth about scope

From: greggirwin:mindspring at: 13-Apr-2005 14:05

>> I'll give you a hint: position. >> a: [1 2 3 4 5]
== [1 2 3 4 5]
>> b: next a
== [2 3 4 5]
>> c: skip b 2
== [4 5]
>> reduce [same? a b same? b c same? a c]
== [false false false]
>> reduce [same? a head b same? head b head c same? a head c]
== [true true true]
>> reduce [same? at a 2 b same? at b 3 c same? tail a tail c]
== [true true true] http://www.rebolforces.com/articles/series/ -- Gregg