SWI-Prolog Did You Know Did you know? SWI-Prolog provides general DCG primitives Search Documentation:
Predicate stream_to_lazy_list/2