Because as in Lisp, a list in Prolog is of the form [H | T] where T is a
list.

[1|2] is not a proper list, it’s equivalent as (1.2) in Lisp.

B = [1 | [2]] is the same as [1 | [2 | []]] |

Please log in or register to post a reply.

Because as in Lisp, a list in Prolog is of the form [H | T] where T is a
list.

[1|2] is not a proper list, it’s equivalent as (1.2) in Lisp.

B = [1 | [2]] is the same as [1 | [2 | []]] |

- Upcoming Multiplatform Game Program...
- Our first game - looking for feedbacks
- Network Emulation Tool
- Trouble with accessing GLSL array
- Fiction
- Game Programming Patterns: Bytecode
- Interactive WebGL Water Demo
- Skeletal Animation Tutorial with GP...
- Unreal Engine 4
- Microsoft xbox one selling poorly

Hi,

why is

B = [1, 2]

and

Thanks for any answers.