diff options
author | Rustan Leino <unknown> | 2013-03-27 13:51:16 -0700 |
---|---|---|
committer | Rustan Leino <unknown> | 2013-03-27 13:51:16 -0700 |
commit | 5296b17758c3e27bf551e9a322323a37983d7abb (patch) | |
tree | a7c818eedf1608eec0e59ff73ac3ee8356939751 /Test/dafny0/Comprehensions.dfy | |
parent | 5f05e3a1c194dcda48115d7b6a1c5777bd2d5287 (diff) |
The "choose" statement, hacky and specialized as it was, is now gone. Use the assign-such-that statement instead. For example: x :| x in S;
Diffstat (limited to 'Test/dafny0/Comprehensions.dfy')
-rw-r--r-- | Test/dafny0/Comprehensions.dfy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/dafny0/Comprehensions.dfy b/Test/dafny0/Comprehensions.dfy index ca1fcfb7..24015fc6 100644 --- a/Test/dafny0/Comprehensions.dfy +++ b/Test/dafny0/Comprehensions.dfy @@ -35,7 +35,7 @@ method PrintSet<T>(s: set<T>) { while (q != {})
decreases q;
{
- var x := choose q;
+ var x :| x in q;
print x, " ";
q := q - {x};
}
|