apoc.coll.fill

Function APOC Core

apoc.coll.fill(item, count) - 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"]