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