Skip to content

Commit 123ba4c

Browse files
Apply suggestions from code review
Co-authored-by: Richard Sill <[email protected]>
1 parent 4d9049b commit 123ba4c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ RETURN coll.min([1.5, 2, 5.4, 0, 4]);
4646
RETURN coll.remove(['a', 'a', 'b', 'c', 'd'], 2);
4747
RETURN coll.sort([3, 1, 4, 2, 'a', 'c', 'b']);
4848
----
49-
| Introduction of eight new collection based Cypher functions.
49+
| Introduction of eight new collection-based Cypher functions.
5050
For more information, see xref:functions/list.adoc[List functions - lists].
5151

5252
|===

modules/ROOT/pages/functions/list.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ CREATE
5151
.Considerations
5252
|===
5353
| `coll.distinct(null)` returns `null`.
54-
| The order of the first occurrences is preserved.
54+
| The order of the first occurrences of the distinct values is preserved.
5555
|===
5656

5757
.+coll.distinct()+
@@ -103,9 +103,9 @@ A `LIST<ANY>` containing only unique values is returned.
103103
.Details
104104
|===
105105
| *Syntax* 3+| `coll.flatten(list [, depth])`
106-
| *Description* 3+| Returns a list flattened to the given depth.
106+
| *Description* 3+| Returns a list flattened to the given nesting depth.
107107
.3+| *Arguments* | *Name* | *Type* | *Description*
108-
| `list` | `LIST<ANY>` | A list to be flattened.
108+
| `list` | `LIST<ANY>` | A nested list to be flattened.
109109
| `depth` | `INTEGER` | The maximum depth to flatten to (default value: 1).
110110
| *Returns* 3+| `LIST<ANY>`
111111
|===
@@ -171,7 +171,7 @@ A `LIST<ANY>` with any inner lists up to a nesting depth of 1 (default depth) fl
171171
.Details
172172
|===
173173
| *Syntax* 3+| `coll.indexOf(list, value)`
174-
| *Description* 3+| Returns the index for the first match of value in the given list, if the value is not present, -1 is returned.
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.
175175
.3+| *Arguments* | *Name* | *Type* | *Description*
176176
| `list` | `LIST<ANY>` | A list to be searched.
177177
| `value` | `ANY` | A value to search for.
@@ -252,7 +252,7 @@ The `INTEGER` -1 representing that the value is not found.
252252
| `coll.insert(null, null, value)` returns `null`.
253253
| `coll.insert(list, null, value)` returns `null`.
254254
| `coll.insert(null, 1, value)` returns `null`.
255-
| If the given `index` is negative or larger than the size of the given list, an error will be returned.
255+
| If the given `index` is negative or larger than the size of the given list, an error is returned.
256256

257257
|===
258258

@@ -387,7 +387,7 @@ The minimum value found in the given list based on Cypher's ordering.
387387
| `coll.remove(null, null)` returns `null`.
388388
| `coll.remove(null, index)` returns `null`.
389389
| `coll.remove(list, null)` returns `null`.
390-
| If the given `index` is negative or larger than the size of the given list, an error will be returned.
390+
| If the given `index` is negative or larger than the size of the given list, an error is returned.
391391

392392
|===
393393

@@ -403,7 +403,7 @@ RETURN coll.remove([true, 'a', 1, 5.4], 1)
403403
----
404404
// end::functions_list_remove[]
405405
406-
The original list with the value at the given index removed and all items following shifted forward by 1.
406+
The original list with the value at the given index removed and all items following shifted by 1.
407407
408408
.Result
409409
[role="queryresult",options="header,footer",cols="1*<m"]

0 commit comments

Comments
 (0)