SWI-Prolog Did You Know Did you know? SWI-Prolog has Multi-Thread support Search Documentation:
Predicate nb_set_to_list/2