0

I have a question regarding Prolog. Actually I have a Prolog function that call a list of numbers and signs and I want to convert the list from post equation to pre equation. for example if I have the list and the result to store the resulted equation.

the function call will contain for example:

|?- convert([20,30,+,41,11,-,ex,/],E).

E=[/,+,20,30,ex,-,4,1]
false
  • 10,264
  • 13
  • 101
  • 209
user3281166
  • 29
  • 10

0 Answers0