|| apoc.coll.different - APOC 核心文档 - Neo4j 文档

apoc.coll.different

详情

语法

apoc.coll.different(coll)

描述

如果给定 LIST<ANY> 中的所有值都是唯一的,则返回 true。

参数

名称

类型

描述

coll

LIST<ANY>

要检查重复项的列表。

返回

BOOLEAN

用法示例

以下表示集合中的所有值是否不同

RETURN apoc.coll.different([1,3,5,7,9]) AS output;
结果
输出

true

以下表示集合中至少有一个值是重复的

RETURN apoc.coll.different([1,1,5,7,9]) AS output;
结果
输出

false

© . This site is unofficial and not affiliated with Neo4j, Inc.