Given an array:
arr = ['a','b','c','d','a','b','d','f']
I would like to preprocess it with some kind of dictionary:
dictionary = ['a','b','c']
so after: arr.preprocess(dictionary)
all items not exisiting in dictionary will be deleted, arr will be now like:
['a','b','c','a','b']