Hostname: page-component-77f85d65b8-45ctf Total loading time: 0 Render date: 2026-04-20T17:25:43.175Z Has data issue: false hasContentIssue false

Elastic sheet-defined functions: Generalising spreadsheet functions to variable-size input arrays

Published online by Cambridge University Press:  21 August 2020

MATT MCCUTCHEN
Affiliation:
Massachusetts Institute of Technology, (e-mail: matt@mattmccutchen.net)
JUDITH BORGHOUTS
Affiliation:
University of California Irvine, (e-mail: jborghou@uci.edu)
ANDREW D. GORDON
Affiliation:
Microsoft Research and University of Edinburgh, (e-mail: adg@microsoft.com)
SIMON PEYTON JONES
Affiliation:
Microsoft Research, (e-mail: simonpj@microsoft.com)
ADVAIT SARKAR
Affiliation:
Microsoft Research and University of Cambridge, (e-mail: advait@microsoft.com)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Sheet-defined functions (SDFs) bring modularity and abstraction to the world of spreadsheets. Alas, end users naturally write SDFs that work over fixed-size arrays, which limits their reusability. To help end user programmers write more reusable SDFs, we describe a principled approach to generalising such functions to become elastic SDFs that work over inputs of arbitrary size. We prove that under natural, checkable conditions, our algorithm returns the principal generalisation of an input SDF. We describe a formal semantics and several efficient implementation strategies for elastic SDFs. A user study with spreadsheet users compares the human experience of programming with elastic SDFs to the alternative of relying on array-processing combinators. Our user study finds that the cognitive load of elastic SDFs is lower than for SDFs with map/reduce array combinators, the closest alternative solution.

Information

Type
Research Article
Copyright
© The Author(s), 2020. Published by Cambridge University Press
Supplementary material: File

McCutchen et al supplementary material

McCutchen et al supplementary material

Download McCutchen et al supplementary material(File)
File 27.1 KB
Submit a response

Discussions

No Discussions have been published for this article.