You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and nothing is to be changed in python runtime.
Probably, this is an easier alternative, and the idea would be that addition/multiplication/conjunction/disjunction are binary operations and support of multiple arguments is rather syntactic sugar.
NumberOperation for .add and .mul (as well as yet non-existent .and and .or for Boolean) gets varargs (or some variation of it, for we would need to forbid 0 arguments) as input.
This approach seems to be another viable response to the mentioned example. Moreover, there exist other atoms that require varargs (e.g. Sprintf)
As this example from here suggests:
The text was updated successfully, but these errors were encountered: