check if array is empty

没有找到与「check if array is empty」相关的内容

AI 回答 由 glm-4-flash 生成 · 仅供参考,请自行核实
1. Python

def is_empty(array):
return len(array) == 0

2. JavaScript

function isEmpty(array) {
return array.length === 0;
}

3. Java

public boolean isEmpty(List<?> list) {
return list.isEmpty();
}

4. C#

public bool IsEmpty<T>(List<T> list) {
return list.Count == 0;
}
没有找到「check if array is empty」相关的内容

建议:检查关键词是否有错别字,或换一个更常见的说法。