@@ -58,12 +58,12 @@ CREATE
5858======
5959
6060.Deduplicate a list of integer values
61- // tag::functions_list_distinct []
61+ // tag::functions_list_distinct_ints []
6262[source, cypher]
6363----
6464RETURN coll.distinct([1, 3, 2, 4, 2, 3, 1])
6565----
66- // end::functions_list_distinct []
66+ // end::functions_list_distinct_ints []
6767
6868A `LIST<ANY>` containing only unique values is returned.
6969
@@ -77,12 +77,12 @@ A `LIST<ANY>` containing only unique values is returned.
7777|===
7878
7979.Deduplicate a list of mixed values, including null
80- // tag::functions_list_distinct []
80+ // tag::functions_list_distinct_mixed []
8181[source, cypher]
8282----
8383RETURN coll.distinct([1, true, true, null, 'a', false, true, 1, null])
8484----
85- // end::functions_list_distinct []
85+ // end::functions_list_distinct_mixed []
8686
8787A `LIST<ANY>` containing only unique values is returned.
8888
@@ -146,12 +146,12 @@ A `LIST<ANY>` with any inner lists up to a nesting depth of 2 flattened.
146146|===
147147
148148.Flatten a list to default of depth 1
149- // tag::functions_list_flatten []
149+ // tag::functions_list_flatten_default []
150150[source, cypher]
151151----
152152RETURN coll.flatten(['a', ['b', ['c']]])
153153----
154- // end::functions_list_flatten []
154+ // end::functions_list_flatten_default []
155155
156156A `LIST<ANY>` with any inner lists up to a nesting depth of 1 (default depth) flattened.
157157
@@ -213,12 +213,12 @@ An `INTEGER` representing the index of the item in the list.
213213|===
214214
215215.Search for a value not present in the given list
216- // tag::functions_list_indexOf []
216+ // tag::functions_list_indexOf_missing []
217217[source, cypher]
218218----
219219RETURN coll.indexOf([1, 'b', false], 4.3)
220220----
221- // end::functions_list_indexOf []
221+ // end::functions_list_indexOf_missing []
222222
223223The `INTEGER` -1 representing that the value is not found.
224224
@@ -268,7 +268,7 @@ RETURN coll.insert([true, 'a', 1, 5.4], 1, false)
268268----
269269// end::functions_list_insert[]
270270
271- The original list with a new value inserted at the given index.
271+ The original list with a new value inserted at the given index, shifting all the values following by 1.
272272
273273.Result
274274[role="queryresult",options="header,footer",cols="1*<m"]
0 commit comments