Returns a transform that extracts the first or last element of an
array-valued column. The result can be passed as the transform
argument to il_compare() or il_block_on(), and composed with
other transforms via il_transform(). On DuckDB and PostgreSQL,
maps to SQL array indexing (col[1] or col[-1]).
Usage
il_array_element(position = c("first", "last"))