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?