Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果让一个对象集合 list.get(i)取值时 不报错、 #604

Open
moqiaaa opened this issue Dec 28, 2023 · 0 comments
Open

如果让一个对象集合 list.get(i)取值时 不报错、 #604

moqiaaa opened this issue Dec 28, 2023 · 0 comments

Comments

@moqiaaa
Copy link

moqiaaa commented Dec 28, 2023

我需要取集合的第一个元素,取之前需要先判断这个元素是否存在

文档中说可以用
include(coll, element)

但是我的元素是对象,也不清楚对象具体是什么,也没法用include(list,某个对象),如何不报错直接返回空

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant