SWI-Prolog Did You Know Did you know? You can hot-swap code Search Documentation:
Predicate set_end_of_stream/1