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
I have switched to the refactor branch in the meantime.
Now I want to write a function like this:
def my_function(input_var, output_var):
# compute some list of values based on input_var
'assign' / unify this list with output_var, such that it is accessible from within prolog.
return True
Prolog.register(my_function)
I managed, somehow dirty, to assign a list value to output_var._value, which is probably wrong, and which did not pass the value to output_var such that it was accessible.
Is what I want to do possible?
Thanks,
Christoph
The text was updated successfully, but these errors were encountered:
I have switched to the refactor branch in the meantime.
Now I want to write a function like this:
def my_function(input_var, output_var):
# compute some list of values based on input_var
'assign' / unify this list with output_var, such that it is accessible from within prolog.
return True
Prolog.register(my_function)
I managed, somehow dirty, to assign a list value to output_var._value, which is probably wrong, and which did not pass the value to output_var such that it was accessible.
Is what I want to do possible?
Thanks,
Christoph
The text was updated successfully, but these errors were encountered: