grape icon indicating copy to clipboard operation
grape copied to clipboard

Alterative operator (||) does not permit nesting

Open sdiemert opened this issue 1 year ago • 0 comments

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)

sdiemert avatar Jul 15 '23 21:07 sdiemert