Dealing with data subsetting in Stan

Coming soon! The proposal is out for comments.

That sounds like a strong argument for including functions like this in Stan itself.