pub fn first(value: Value) -> Result<Value, Error>
Available on crate feature
builtins
only.Expand description
Returns the first item from a list.
If the list is empty undefined
is returned.
<dl>
<dt>primary email
<dd>{{ user.email_addresses|first|default('no user') }}
</dl>