maplist with parametrized predicate
<p>Is it possible to use parametrized predicate in <code>mapList</code>?</p>

<p>For example,  I would like to do following:
iter by list, and for each even element (list contains only numbers) map this element to some value (this value is set by parameter of predicate).  </p>

<p>Sample queries:</p>

<pre><code>?- mapList(p(red, blue), [1,2,3,4], [red, blue, red, blue]).
true.

?- mapList(p(green, blue), [1,2,3,4], [green, blue, green, blue]).
true.
</code></pre>