first
Takes the first non-null grouped value.
first(xs:list) -> any
Description
Section titled “Description”The first
function returns the first non-null value in xs
.
xs: list
Section titled “xs: list”The values to search.
Examples
Section titled “Examples”Get the first non-null value
Section titled “Get the first non-null value”from {x: null}, {x: 2}, {x: 3}summarize first_value=first(x)
{first_value: 2}