]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/scl/Monads1.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / scl / Monads1.scl
1 import "Prelude"
2
3 a = [1, 2]
4 b = [5, 6]
5
6 main = a >>= \x -> b >>= \y -> return (x+y) 
7 --
8 [6, 7, 7, 8]