View Source

This service returns a, possibly empty, list of those strings that are in both of the input lists. For example, the input parameters \['a','b','c'\] and \['a','e','c'\] will return \['a','c'\]. The input values \['a,'b','c'\] and \['x','y','z'\] will return an empty list \[\]. Note that the order of elements in the returned list should not be relied upon.


!string-list-intersection.png|border=1!


h2. Input ports

* list1 - A list of strings that will be intersected with those in list2. This parameter is mandatory.
* list2 - A list of strings that will be intersected with those in list1. This parameter is mandatory.

h2. Output ports

* intersection - A, possibly empty, list of those strings that are both in list1 and in list2.

h2. Examples

Example workflows can be found on myExperiment showing:
* [intersection of two lists that have no strings in common|http://www.myexperiment.org/workflows/1639.html]
* [intersection of two lists that have some strings in common|http://www.myexperiment.org/workflows/1638.html]