跳到主要内容

pop

弹出并返回堆的最大值,并保持堆的性质

声明

mixed pop(array arr, function predicate = nil)

参数

参数名描述
arr数组

返回值

最大值

使用方式

返回文档