How to use predicate transpose in SWI-Prolog?
问题 Hi guys I want to use predicate transpose(Matrix0, Matrix) in SWI-Prolog which holds when Matrix0 and Matrix are lists of lists, and the “columns” of each are the “rows” of the other. The problem is when I added :- ensure_loaded(library(clpfd)). into my source file and tried to use it, I got this % library(occurs) compiled into occurs 0.00 sec, 14 clauses % library(apply_macros) compiled into apply_macros 0.00 sec, 44 clauses % library(assoc) compiled into assoc 0.00 sec, 103 clauses ERROR: