CurryInfo: spicey-4.2.0 / Spicey.ControllerGeneration.relationshipsForEntity

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