See also SE-0507: Borrow and Mutate Accessors - #27 by Dmitriy_Ignatyev - there is nonmutating mutate even.
nonmutating mutate