- More Labs
','(element1, element2)? Can I change that?
','(element1, element2)is the Prolog representation of a list. Its first argument is the first list element and the second argument is the entire rest of the list. So a list with three elements will have the structure
','(element1, ','(element2, element3)). The syntax [element1, element2, element3] is just syntactic suggar for the same thing.