wip: array-manipulation snippet