For example, given a vector A = append_row( rep_vector(1, 5), rep_vector(2, 5) ), do we have an Rstan function that directly reshape A as a 1d array of vectors like B = { rep_vector(1, 5), rep_vector(2, 5) }?

This function is useful to prepare the third argument of the function “map_rect”.