Managing Arrays
input - arr: returns any elements from input that are NOT in arr
arr - input: returns any elements from arr that are not in a
arr | input: returns the unique set from input AND arr
arr & input: returns the intersection elements of input AND arr
pipe (|): returns the unique set of elements for BOTH arrays
Example|s:
{% assign input = '1,2,3,4,5' | split: ',' %}
{% assign arr = '1,2,3' | split: ',' %}
{% assign difference = input | difference: arr %}
{% assign union = input | union: arr %}
{% assign intersection = input | intersection: arr %}
NOTE
See: https://stackoverflow.com/questions/5678108/how-can-i-get-the-intersection-union-and-subset-of-arrays-in-ruby