Re: Database-valued attributes?
Date: Tue, 11 Nov 2003 16:03:16 GMT
Message-ID: <8L7sb.170850$HS4.1382292_at_attbi_s01>
"Costin Cozianu" <c_cozianu_at_hotmail.com> wrote in message news:boqt6f$1g3h55$1_at_ID-152540.news.uni-berlin.de...
>
> I wouldn't call that an attribute. Because if you have a database call
> attribute a database is a collection of relations. Now you are no more
> in first order logic.
> However to your question, the answer is simple, once you have the
> following type constructors:
>
> TUPLE
> RELATION
> ARRAY
> LIST
What's the difference between array and list?
> So yes, you could represent that "tree" as a tuple with two elements,
> the base set and the adjacency list but then you've just accomplished
> very little.
Fair enough.
> Better try this one:
>
> type 'a tree = Empty | Node of 'a * 'a tree list
Marshall Received on Tue Nov 11 2003 - 17:03:16 CET