Re: A Logical Model for Lists as Relations
Date: 10 May 2006 11:17:19 -0700
Message-ID: <1147285039.768999.135930_at_u72g2000cwu.googlegroups.com>
Marshall Spight wrote:
> I am interested in the question of how best to handle lists in a
> relation-oriented world. I have considered various approaches,
> usually oriented around adding a list collection type.
>
> But a list can be described as a relation. Most simply, an infinite
> list is a relation from the natural numbers to the target set,
> and a finite list is a relation from some finite contiguous subset
> [0..n] of the naturals to the target set. Generalizing, we could
> describe an n-ary list as a relation with an index attribute and
> zero or more other attributes.
nodeId integer,
nextNodeId integer,
... -- list element content
)
>From this perspective list indeed looks like a worthful abstraction.
Received on Wed May 10 2006 - 20:17:19 CEST