Hacker News new | ask | show | jobs
by upghost 614 days ago
that is prolog pseudocode. You would probably use the lists:nth/3 predicate.

https://www.scryer.pl/lists

Markus Triska has probably the best resources on modern Prolog.

Just search for "Power of Prolog" on YouTube or the internets.