hey([a, y, y], ayy).hey([l,m,a,o], lmao).ayylmao(C):- hey(A, ayy), hey(B, lmao), append([A,B],C).
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!