chop

format

SearchResults[] chop(SearchResults arg1[], int maxLength)

description

Truncates the array of SearchResults to the given length. If the array is already that length or shorter, it is returned unmodified.

parameters

arg1 - the array of SearchResults

 

maxLength - the length to which to truncate the array

returns

a one-dimensional array of SearchResults objects with maxLength or fewer members

throws

The chop() method does not throw any exceptions.