Hacker News new | ask | show | jobs
by tempguy9999 2378 days ago
What do you actually suggest we use instead of lists?

Which from my ancient memory of prolog, are just the equivalent of cons cells, so come naturally to prolog.

Edit: from https://en.wikipedia.org/wiki/Prolog_syntax_and_semantics#Da...

"Lists are defined inductively: The atom [] is a list. A compound term with functor . (dot) and arity 2, whose second argument is a list, is itself a list. There exists special syntax for denoting lists: .(A, B) is equivalent to [A|B]. For example, the list .(1, .(2, .(3, []))) can be written (edit: cut for clarity) as [1,2,3]."