标签: prolog map-function meta-predicate
如果我有一个列表,并且想生成一个列表,其中所有项都由“函数”转换,例如,相当于Lisp的
(map f xs)
我该如何在Prolog中做到这一点?