Skip to content
New issue

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

Fix output for references that iterate complete sets #148

Closed
tsandall opened this issue Nov 14, 2016 · 0 comments
Closed

Fix output for references that iterate complete sets #148

tsandall opened this issue Nov 14, 2016 · 0 comments
Labels

Comments

@tsandall
Copy link
Member

The output for references that iterate complete sets should not include the binding for the reference itself. This is already handled for partial sets. When set literals were added, we forgot to update this part of the REPL. For example:

torin:~$ opa run
OPA 0.2.1-dev (commit 6228136-dirty, built at 2016-11-10T21:14:12Z)

Run 'help' to see a list of commands.

> p[1] :- true
> p[2] :- true
> p[x]
+---+
| x |
+---+
| 1 |
| 2 |
+---+
>
>
>
> q = {1,2} :- true
> q[x]
+---+------+
| x | q[x] |
+---+------+
| 1 | true |
| 2 | true |
+---+------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant