my task is to implement maps with lists. We defined associative lists as follows:
[]
is the list,
k
is a key, v
is a value and a is an associative list, then [[k, v] | a]
is an associative list.
so now ive got to write a predicate, in which it checks if the given argument is a associative list. for example:
?- test([[a,5]]). -> true., ?- test([[1],[2]]). -> false.
im really in despair, i hope someone can help me there
greetings