Builds a logic list out of items (each toTerm-ed), optionally ending in tail (also toTerm-ed) rather than the empty list — mirroring it.unibo.tuprolog.core.Scope.logicListFrom's last parameter.
last