i'am new in Prolog , i tried to write 5 lists and get the intersection between them , how i can achieve that, ** lists will be defined in file so it's not input from the user .
i see many resources they implement it with two lists and its work fine if i make list as query from user ... but when i try to pre-defined lists in file it's not work.
simple description of part of my project to more clarify... menus will display and user will select one from each of the season , weather condition , occasion... lists will be about what clothes are appropriate
so for example user select "winter" season, "rainy" weather condition and "wedding"occasion lists for each of them
rainy([take_umbrella, jacket,coat]).
winter([jacket,sweater,coat,take_umbrella]).
wedding ([take_umbrella,dress,jacket,coat]).
so the result form intersection will be take_umbrella ,jacket,coat
i hope my idea is clear, and thank you in advance:)