P18: Extract a slice from a list.