Translate an XPCE chain into a Prolog
list. This may be useful to exploit Prolog's list-processing primitives.
Note however that XPCE chains define various operations that may be
exploited to avoid the translation. See chain->for_all,
chain<-find_all,
etc. The list is built from a snapshot of the chain, which makes this
safe if other threads use or modify the chain.
History
Enhanced in 10.1.18 (👉2d5dec4) chain_list/2 is thread-safe; ADDED: member_chain/2