Questions¶
- Does the content of
funonly be allowed to contain a set comprehension?Answer:fun named_contents : Dir -> Name -> Object { { d : Dir, n : Name, o : Object | some e : Entry | e in d.entries and e.name = n and e.object = o } }
Syntax for fun (function) statements
- What's the difference between these two statements?
{s: S, a: A | { one b: B | one s->a->b}}
{s: S, a: A | { some b: B | one s->a->b}}
Answer:
one s->a->b is always true
{b: B | {all s: S, a: A| one s->a->b}}