hash table from scratch in prolog (boo)

i'm currently taking knowledge representation at university, a core part of this unit is logic programming for which we use Prolog . i seriously dislike Prolog as a programming language. i find it unnatural to work with and it's quirks irritate me. but this definitely a skill issue (see below image) in an attempt to try to mend my broken relationship with the language i decided to build a data…