solve some problems with Prolog -- 3

Job ID: 35541668

Budget: $30 – $250 USD

6 small problems using Prolog. Example:

"Show a Prolog predicate “indices” that takes a list of indices (numbering from zero) and a list of elements, and returns a list of the elements with the indices, so that
indices( [1,3,4], [a,b,c,d,e,f], ES )
ES = [b,d,e]"

total $120
Deadline in 12 hours.
Related categories: Prolog Coding