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

Alterative operator (||) does not permit nesting #24

Open
sdiemert opened this issue Jul 15, 2023 · 0 comments
Open

Alterative operator (||) does not permit nesting #24

sdiemert opened this issue Jul 15, 2023 · 0 comments

Comments

@sdiemert
Copy link
Contributor

The alternative operator (|| op1 op2 ...) does not permit nesting with other operators.

For example, given two rules say-bye and say-hello, the following is a valid operation in GrapeVine that runs as wanted:

(-> (newgrape) (|| say-bye say-hello))

This returns a GRAPE with two graphs, as wanted.

However, nesting a looping operator in one of the branches of the alternative operator results in an error:

(-> (newgrape) (|| (->n* 3 say-bye) say-hello))

With the error message:

Exception thrown: java.lang.IllegalArgumentException (Don't know how to create ISeq from: java.lang.Long)
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