Does Jekyll have set utilities

I’m wondering if Jekyll has utilities for set operations.

For example, if I have array1 and array2, I can aggregate them in Hugo like so:

{{ union (slice 1 2 3) (slice 3 4 5) }}
<!-- returns [1 2 3 4 5] -->

or return shared items like so:

{{ intersect (slice 1 2 3) (slice 3 4 5) }}
<!-- returns [3 ] -->

Does anyone know how I can replicate the above in Jekyll?

Here are all of the array filters Liquid supports

1 Like

concat is what I was looking for. Now I can pipe that with uniq to get an intersect. Thank you.