跳到主要内容

upper_bound

在集合中取出大于key的最小元素

声明

mixed upper_bound(OrderedSet self, mixed key)

参数

参数名描述
self
key

返回值

如果满足的元素存在则返回key和value的元组,否则返回nil

使用方式

返回文档