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