I have an array arrAll which has a dictionary at each index. 
So, arrAll is of the form 

```
arrAll = ({"id"=1,"type"="first",},{"id"=2,"type"="second"},{"id"=3,"type"="third"},{"id"=4,"type"="fourth"});

```

I have another array named arrSelected.

```
arrSelected = (second,fourth);

```

Now, what i have to do is pick the dictionaries containing 'second' & 'fourth' as their type and store them in my third array, say, arrFiltered.
So ultimately arrFiltered should contain 

```
arrFiltered = ({"id"=2,"type"="second"},{"id"=4,"type"="fourth"});

```

It could be easily done using conventional method of looping. I want to ask if there is any other way out to get it done using PREDICATE or something like INTERSECTSET?