reload swi prolog 1

reload swi prolog

?- make.

Here is what the above code is Doing:
1. It’s creating a new variable called “my_list” and setting it equal to the list [1,2,3,4,5].
2. It’s creating a new variable called “my_slice” and setting it equal to a slice of “my_list”.
3. It’s printing out the value of “my_slice”.

Similar Posts