Convert complex term to List of lists and then back to term with modified functor

后端 未结 0 439
星月不相逢
星月不相逢 2021-01-12 12:27

you can use =.. to convert simple terms.

?- x(a,b,c) =.. A.
A = [x, a, b, c].

what about complex terms :

x(a,b(c,d)) ==> [x         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题