logo
pub fn last(_: &State<'_, '_>, value: Value) -> Result<Value, Error>
This is supported on crate feature builtins only.
Expand description

Returns the last item from a list.

If the list is empty undefined is returned.

<h2>Most Recent Update</h2>
{% with update = updates|last %}
  <dl>
    <dt>Location
    <dd>{{ update.location }}
    <dt>Status
    <dd>{{ update.status }}
  </dl>
{% endwith %}