extracting of a list (A) elements using indexes saved in another list (B)

August 20 2011 by protrader 374
false
Maple 13

0


Hi,

I need to do this:

A:=[1,3,5,2,7];
B:=[2,5];

f(B,A)=[3,7]

Notice that the elements in A can be lists themselves. How can I define such kind of function?

TIA for the help

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account