My problem is, that I don't know how i can dynamically concatenate 2 constants in Prolog. For example I have the following procedures:
word1(lys).
word2(ser).
word3(rta).
...
wordN(...).
How can I write a function or create a varibale which dynamically take values like [lys-ser] or [rta-ser-lys] depending on other variables?