1. A method for updating a spreadsheet based on user inputs, the method comprising: receiving a first mutation of a first priority from a source location specifying a function to be applied to data of the spreadsheet, the first mutation comprising (1) a selection of one or more cells at the source location and (2) a mapping from the source location to a destination location; receiving a second mutation of a second priority from a portion of the source location specifying a data edit mutation to be applied to the spreadsheet, wherein the second mutation is received after the selection of the one or more cells at the source location and before the mapping from the source location to the destination location is received; determining, by a processor, that the second priority is greater than the first priority; in response to determining that the second priority is greater than the first priority: applying the second mutation to the spreadsheet; performing an operational transform on the selection of the one or more cells of the first mutation based on the second mutation to generate a modified first mutation; and pasting the modified first mutation to the spreadsheet.