I'm doing something like this
do
xs <- xss
x <- x
if x > 3
return x
The line containing the if is giving me a compile error but I'm not really sure about the proper way to write the same thing.
Just to be more clear, in Scala the equivalent of what I'm trying to achieve would be:
for {
xs <- xss
x <- xs
if x > 3
} yield x