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: dukeofperl:ml1 at: 3-Nov-2010 16:51

On Wed, 3 Nov 2010, tomc wrote: Hello Tom,
> the question is ... broad ... array in different languages can mean > different things and rebol has it's own array that is closer to > arrays in some other languages
umm... Haven't got that far in the tutorial, to encounter REBOL arrays yet.
> I think it is safe to say a series in rebol can 'cover' most of the > roles of arrays in other languages. A block (which is a subset > series) may be a bit closer to a general 1D array.
At first glance, a series as described in http://www.rebol.com/docs/core23/rebolcore-6.html looked an awful lot like a regular array in some languages, except that the indexing in a REBOL series is not zero-based. It seems that there are _a lot_ of built-in functions to "slice-n-dice" a series - just like in Lisp, e.g. I'm just trying to categorize a REBOL series into a slot that I'm familiar with. -- Duke