mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-25 08:19:14 +03:00
fix. add missing guard function.
This commit is contained in:
parent
9db197e7d8
commit
f09375d95b
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@ $$\{ (x, y) | x \in X, y \in Y, \pi_1(x) = \pi_2(y) \}$$
|
||||
[ (x, y) | x <- xs, y <- ys, fst x == snd y ]
|
||||
|
||||
-- List Monad
|
||||
do { x <- xs; y <- ys; fst x == snd y; return (x, y) }
|
||||
do { x <- xs; y <- ys; guard (fst x == snd y); return (x, y) }
|
||||
|
||||
~~~~~
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user