killme2008 / killme2008/aviatorscript

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

Open
#604 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.2k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

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

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

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

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named. Start by locating the implementation and documentation for list.get(i), then determine the intended out-of-range return behavior for object collections and how it should relate to include(coll, element). Done means the agreed behavior is documented and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.