Say I have these facts:
person(fred). person(jim). person(mary).
I would like to get a list like:
[person(fred), person(jim),