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

[REBOL] reduce [unset!] compose [(unset!)]

From: antonr::lexicon::net at: 24-May-2004 0:45

I am looking at the difference in behaviour between compose and reduce: First, let's see the result of this either expression:
>> type? either none [][]
== unset! Ok, now let's look at reduce:
>> reduce [unset! either none [][]]
== [unset! unset] Why was the first unset! molded and the second formed? Now let's look at compose:
>> compose [(either none [][])]
== [] I like the above compose behaviour, it is useful, but why doesn't the following unset value also disappear?
>> compose [(unset!)]
== [unset!] Anton.