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

[REBOL] Re: Is a "series" aka an "array"

From: izkata:gmai:l at: 4-Nov-2010 20:41

On Thu, Nov 4, 2010 at 8:25 PM, Carl Read <carl-cybercraft.co.nz> wrote:
> On Thursday, 4-Novenber-2010 at 18:59:10 Duke Normandin wrote, > > > >So... It seems that several REBOL data-types fall into an umbrella > >category called "series". Is there a particular reason for *categorizing* > >these data-types under the name "series"? > > For one, it means routines that are written to handle series will then > handle all the types that are series. ie... > > >> foreach value "abc" [print value] > a > b > c > >> foreach value [xxx yyy zzz] [print value] > xxx > yyy > zzz > >> foreach value %file.r [print value] > f > i > l > e > . > r > > -- Carl Read. > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
As another quick example, there's a datatype called number! that both integer! and decimal! fall under. -- <*>