Array modifier to achieve a partial object (ie. non-integer objects)?
you can achieve this with a little overhead:

you created your array of e.g. a cube

you double that cube (before you add the array modifier)

you shorten the cube in edit mode as you need

you add that edited cube as cap end in the array modifier like here: