X (Constant) -- A scalar/vector/matrix/table.
size (Constant) -- A positive integer that must be no greater than the size of X.
cutPositions (Constant) -- A vector with increasing elements, which is used to specify the starting position of each vector in the result.