pub fn last(value: Value) -> Result<Value, Error>Expand description
Returns the last item from an iterable.
For maps this is the last key. If the list is empty undefined is
returned. Like in Jinja2, undefined values are returned unchanged
unless strict undefined behavior is used.
<h2>Most Recent Update</h2>
{% with update = updates|last %}
<dl>
<dt>Location
<dd>{{ update.location }}
<dt>Status
<dd>{{ update.status }}
</dl>
{% endwith %}