geetools.ListAccessor.union#
- geetools.ListAccessor.union(other)#
Compute the union of the current list and the
other
list.This list will drop duplicated items.
- Parameters:
other (geetools.types.ee_list) – The list to compute the union with.
- Returns:
A list of strings corresponding to the union of the current list and the
other
list.- Return type:
ee.List
Examples
import ee, geetools ee.Initialize() l1 = ee.List(["1", "2", "3"]) l2 = ee.List(["2", "3", "4"]) l1.geetools.union(l2).getInfo()