apoc.coll.fill

Function

apoc.coll.fill(items String, count Integer) - returns a list with the given count of items.

Signature

apoc.coll.fill(item :: STRING?, count :: INTEGER?) :: (LIST? OF ANY?)

Input parameters

Name Type Default

item

STRING?

null

count

INTEGER?

null

Usage examples

The following returns a list containing 2 lists with the contents abc:

RETURN apoc.coll.fill('abc', 2) as output;
Table 1. Results
Output

["abc", "abc"]