ee.Reducer.toList

Creates a reducer that collects its inputs into a list, optionally grouped into tuples.

UsageReturns
ee.Reducer.toList(tupleSize, numOptional)Reducer
ArgumentTypeDetails
tupleSizeInteger, default: nullThe size of each output tuple, or null for no grouping. Also determines the number of inputs (null tupleSize has 1 input).
numOptionalInteger, default: 0The last numOptional inputs will be considered optional; the other inputs must be non-null or the input tuple will be dropped.