Capture the functionality for parsing arrays as a first-class function