2

Given:
a blackbox function \$f : \mathbb N \to \mathbb N\$,
a list of positive integers \$L\$, and
a list of indices \$I\$,
apply \$f(x)\$ to the elements of \$L\$ at the indices specified in \$I\$.
For example, \$f(x) = x^2, L = [7, 6, 3, 9, 1, 5, 2, 8, 4]\$ and \$I = [3, 5, 8]\$ (using 1 inde...