Write task list helpers that return updated arrays.
You are writing helper functions for a task list. Each helper should return a result without mutating the original `tasks` array.