distinctWithNull
Returns the distinct values or objects of a given list. If the list has at least one null entry, a null entry will be present in the returned list.
Category
List
Function syntax
distinctWithNull(<parameters>)
Parameters
Signatures and returned types
distinctWithNull(<listInteger>)
Returns a list of integers.
distinctWithNull(<listDecimal>)
Returns a list of decimals.
distinctWithNull(<listString>)
Returns a list of strings.
distinctWithNull(<listDateTimeOnly>)
Returns a list of datetimes without considering time zone.
distinctWithNull(<listDateTime>)
Returns a list of datetimes.
distinctWithNull(<listDateOnly>)
Returns a list of dates.
distinctWithNull(<listBoolean>)
Returns a list of booleans.
distinctWithNull(<listDuration>)
Returns a list of durations.
distinctWithNull(<listObject>)
distinctWithNull(<listObject>,<string>)
Returns a list of objects.
Examples
distinctWithNull([10,2,10,null])
Returns [10, 2, null]