Flattens conjunction of goals with the form f & g into a list [f,g].
Author: Victor Lagerkvist
source: Based on source code from The Craft of Prolog, by Richard O’Keefe
(no dependencies on other entities)
Flattens a conjunction of goals.