89 How to obtain elements of one list which is contained inside another list?

Given array or list $ d=[-9,1,3,-3,50,7,19],$ extracts the elements in this array which is included inside another array $ t=[0,7,2,50]$

Matlab solution

Image matlab_e89

Mathematica solution

Image mma_e89

Maple solution

TODO



Nasser M. Abbasi
http://12000.org