I have an array of images

I want to print only the odd or even images

Like this:

{{ assets:images | odd }} ... {{ /assets:images }}

or that:

{{ assets:images | even }} ... {{ /assets:images }}

Which is the best approach to do that?