prolog replacing elements in list

前端 未结 1 522
谎友^
谎友^ 2021-01-23 14:06

I need help with understanding how to work with lists like that [a(b,c),a(x,d)] change(S,K,R) changes first list [a,c,b] with values given in second list [c(a,x),c(b,y)]

相关标签:
1条回答
  • 2021-01-23 14:28

    Looks like you should use Association lists.

    see SWI-Prolog manual

    and the online doc

    0 讨论(0)
提交回复
热议问题