takeLastColumns

Returns a new list where each sub-list contains only the last n elements of the original sub-list.

Return

A list containing sub-lists that include the last n elements of each original sub-list.

Parameters

n

The number of elements to retain from the end of each sub-list.