We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d09215 commit c75522cCopy full SHA for c75522c
examples/pos/probabilistic.effekt
@@ -24,11 +24,6 @@ type Var {
24
Observed(value: Bool)
25
}
26
27
-def show(x: Var) = x match {
28
- case Unobserved() => "Unobserved()"
29
- case Observed(value) => "Observed(" ++ value.show ++ ")"
30
-}
31
-
32
type Ref { MkRef(n: Int) }
33
34
interface Heap {
@@ -170,7 +165,7 @@ def main() = {
170
165
val res = handleProb {
171
166
test()
172
167
};
173
- println(show(res) { e => show(e) })
168
+ println(show(res))
174
169
175
catch {
176
heapTest()
@@ -182,7 +177,7 @@ def main() = {
182
177
do disj(do flip(0.2), r)
183
178
184
179
185
180
186
181
187
188
0 commit comments