Conformance Examples 0.1.0 — Transforms: transform-last¶
last-list¶
Returns the last element of a list.
Template
Context
Output
last-empty-list-is-null¶
The last element of an empty list is null.
Template
Context
Output
last-string¶
Liquid-compatible: the last character of a string.
Template
Context
Output
last-non-list-non-string-is-null¶
A numeric input is neither list nor string, so the result is null.
Template
Context
Output
last-struct-is-null¶
A struct input is neither list nor string, so the result is null.
Template
Context
Output
Source fixture: transforms/transform-last.json