Atom - m - Modular

Characters: m

Tags: array , number , vectorize

Arity: dyadic

This atom is dyadic, which means it takes two arguments.

Functionality

Return every yth element of x.

Details

Automatically casts the left argument to a singleton list if needed. Vectorizes on the right argument. If y is 0, return x concatenated with its reverse. Otherwise, it is equivalent to x[::y] in Python (and works with negative y, returning elements in reverse order).