assoc_to_list/2 doesn't take kindly to a mix-up in arguments:
?- empty_assoc(A),assoc_to_list(P,A). ERROR: Stack limit (1.0Gb) exceeded
What's the future of this library?
Jan Wielemaker writes on Jan 25, 2021
I’m not sure I’m so happy with library(assoc), a good old lib (...) [it] originates from good old DEC10 library and is around in most Prolog systems, though most have replaced the old non-balancing trees with an AVL tree. Red-Black trees seem to be slightly more efficient. (...) we could take YAP’s route and make library(assoc) be a thin layer around
library(rbtrees). I don’t know whether there are any disadvantages doing so.