Generic operations on slices because we've got better things to do than write for-loops over and over.