You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/expressions/list-expressions.adoc
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,27 @@ RETURN list[2..4] AS middleElements,
207
207
3+d|Rows: 1
208
208
|===
209
209
210
+
Negative indexing in list slicing references elements from the end of the `LIST`; `..-1` excludes the last element, `..-2` excludes the last two elements, and so on.
For removing `NULL` values when concatenating `LIST` values, see xref:expressions/list-expressions.adoc#null-list-concatenation-list-comprehension[`NULL`, list concatenation, and list comprehension].
327
348
328
349
[[add-elements]]
329
-
=== Add elements to a list
350
+
== Add elements to a list
330
351
331
352
The `+` operator can add elements to the beginning or end of a `LIST` value.
0 commit comments