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

no 'array.slice' builtin #222

Closed
srenatus opened this issue Jul 10, 2020 · 1 comment
Closed

no 'array.slice' builtin #222

srenatus opened this issue Jul 10, 2020 · 1 comment

Comments

@srenatus
Copy link
Contributor

There might be others, I haven't checked. Just stumbled here:

$ cat slice.rego
package s

arr := ["foo", "bar", "baz"]
x := array.slice(arr, 0, 1)
$ opa eval -d slice.rego data.s.x --format=pretty
[
  "foo"
]
$ fregot eval data.s.x slice.rego
fregot (renamer error):
  "slice.rego" (line 4, column 6):
  unknown function:

    4| x := array.slice(arr, 0, 1)
            ^^^^^^^^^^^^^^^^^^^^^^

  Package array is not imported.
$
@srenatus
Copy link
Contributor Author

#224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant