We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from
in
Currently, the left-hand side of in must be a variable. We should allow it to be a pattern, to deconstruct rows coming from the right-hand side.
For example, we currently allow
from e in emps yield e.deptno + e.sal
but we should also allow
from {deptno = deptno, sal = sal, ...} in emps yield deptno + sal
and we currently allow
from p in pairs yield let val (left, right) = p in left + right end
from (left, right) in pairs yield left + right
The text was updated successfully, but these errors were encountered:
If the pattern contains constant elements then rows that do not match are skipped. For example,
= from (left, 2) in [("a", 2), ("b", 4), ("c", 2)] - yield left; val it = ["a","c"] : string list
Sorry, something went wrong.
Fixed in b1f5955.
No branches or pull requests
Currently, the left-hand side of
in
must be a variable. We should allow it to be a pattern, to deconstruct rows coming from the right-hand side.For example, we currently allow
but we should also allow
and we currently allow
but we should also allow
The text was updated successfully, but these errors were encountered: