Filter to the last element

To access the last element of a list, assign a negative index [i=-1] as a filter.

To access the second to last element, use [i=-2].

Data

[
  { "name": "Inception", "year": 2010 },
  { "name": "Matrix", "year": 1999 },
  { "name": "BTTF", "year": 1985 }
]

The oldest movie was {d[i=-1].name}

Last updated