2 ms·
> there is no functionality for manipulating code at run-time or interpretation-time Sure there is: http://www.swi-prolog.org/pldoc/man?section=manipterm http:
by carapace 8y ago
> there is no functionality for manipulating code at run-time or interpretation-time
Sure there is: http://www.swi-prolog.org/pldoc/man?section=manipterm http://www.swi-prolog.org/pldoc/man?section=manipterm
Example:
?- foo(Bar, Baz) =.. List.
List = [foo, Bar, Baz].
And:
?- F =.. [foo, Bar, Baz].
F = foo(Bar, Baz).