@@ -58,12 +58,10 @@ CREATE
5858======
5959
6060.Deduplicate a list of integer values
61- // tag::functions_list_distinct_ints[]
6261[source, cypher]
6362----
6463RETURN coll.distinct([1, 3, 2, 4, 2, 3, 1])
6564----
66- // end::functions_list_distinct_ints[]
6765
6866A `LIST<ANY>` containing only unique values is returned.
6967
@@ -77,12 +75,12 @@ A `LIST<ANY>` containing only unique values is returned.
7775|===
7876
7977.Deduplicate a list of mixed values, including null
80- // tag::functions_list_distinct_mixed []
78+ // tag::functions_list_distinct []
8179[source, cypher]
8280----
8381RETURN coll.distinct([1, true, true, null, 'a', false, true, 1, null])
8482----
85- // end::functions_list_distinct_mixed []
83+ // end::functions_list_distinct []
8684
8785A `LIST<ANY>` containing only unique values is returned.
8886
@@ -146,12 +144,10 @@ A `LIST<ANY>` with any inner lists up to a nesting depth of 2 flattened.
146144|===
147145
148146.Flatten a list to default of depth 1
149- // tag::functions_list_flatten_default[]
150147[source, cypher]
151148----
152149RETURN coll.flatten(['a', ['b', ['c']]])
153150----
154- // end::functions_list_flatten_default[]
155151
156152A `LIST<ANY>` with any inner lists up to a nesting depth of 1 (default depth) flattened.
157153
@@ -171,7 +167,7 @@ A `LIST<ANY>` with any inner lists up to a nesting depth of 1 (default depth) fl
171167.Details
172168|===
173169| *Syntax* 3+| `coll.indexOf(list, value)`
174- | *Description* 3+| Returns the index for the first match of a value in the given list or -1 if the value is not present.
170+ | *Description* 3+| Returns the index of the first match of a value in the given list or -1 if the value is not present.
175171.3+| *Arguments* | *Name* | *Type* | *Description*
176172| `list` | `LIST<ANY>` | A list to be searched.
177173| `value` | `ANY` | A value to search for.
@@ -213,12 +209,10 @@ An `INTEGER` representing the index of the item in the list.
213209|===
214210
215211.Search for a value not present in the given list
216- // tag::functions_list_indexOf_missing[]
217212[source, cypher]
218213----
219214RETURN coll.indexOf([1, 'b', false], 4.3)
220215----
221- // end::functions_list_indexOf_missing[]
222216
223217The `INTEGER` -1 representing that the value is not found.
224218
0 commit comments