CurryInfo: spicey-4.2.0 / Spicey.GenerationHelper.isRelevantForEntity

definition: Info
 
isRelevantForEntity :: Entity -> [Attribute] -> Bool
isRelevantForEntity (Entity ename a) (attr:attrs) =
  case attr of
    (Attribute _ (KeyDom name) _ _) -> ename == name
    _ -> isRelevantForEntity (Entity ename a) attrs
isRelevantForEntity _ [] = False
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
An entity is relevant for a list of attributes if the first Key attribute
is a key to this entity.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({Entity},{:}) |-> _ || (_,{[]}) |-> {False}}
name: Info
 isRelevantForEntity
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Database.ERD.Entity -> [Database.ERD.Attribute] -> Prelude.Bool
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms