definition:
|
relatedEntityNames :: Entity -> [Relationship] -> [String]
relatedEntityNames (Entity entityName attrlist) relationships =
map (\ (Relationship _ ((REnd name1 _ _) : (REnd name2 _ _) : [])) ->
if name1 == entityName then name2 else name1)
(relationshipsForEntity (Entity entityName attrlist) relationships)
|
demand:
|
arguments 1 2
|
deterministic:
|
deterministic operation
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({Entity},_) |-> {:,[]}}
|
name:
|
relatedEntityNames
|
precedence:
|
no precedence defined
|
result-values:
|
{:,[]}
|
signature:
|
Database.ERD.Entity -> [Database.ERD.Relationship] -> [String]
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|