-
Notifications
You must be signed in to change notification settings - Fork 33
Description
The intersect functionality for pdp expressions as it is currently implemented consists of 2 functions:
intersect(list of strings, list of strings) list of strings
intersect(set of strings, set of strings) set of strings
This implementation is not ideal; instead, the following functions are proposed to replace them:
-
a set of strings function for any number of list/set of strings arguments which produces a set of strings from all items of the given arguments (similar to the list of strings function):
set of strings(list of strings..., set of strings...) set of strings -
a intersect function for two items, both of which may be either a list of strings or a set of strings; the intersect in any case returns a set of strings. It can be implemented as single expression (and piece of code) which works for all the cases:
intersect(list/set of strings, list/set of strings) set of strings