I think add is actually a “method” of a numeric object, like this:
>>> a = 1
>>> a
1
>>> a.__add__(2)
3
Is there any way to access this from swipl? My use case is not addition, but symbolic computing with sympy, discussed in a parallel thread.
Not urgent, though.