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

arr.atを追加 #661

Merged
merged 3 commits into from
Jul 10, 2024
Merged

arr.atを追加 #661

merged 3 commits into from
Jul 10, 2024

Conversation

salano-ym
Copy link
Member

@salano-ym salano-ym commented May 13, 2024

What

arr.atを追加

  • @(v: arr).at(index: num, otherwise?: value): value

### @(_v_: arr).at(_index_: num, _otherwise_?: value): value
配列の _index_ の位置の要素を返します。\
_index_ が負の場合は末尾から数えます。\
_index_ が範囲外の場合は、代わりに _otherwise_ を返します。\
_otherwise_ が省略されている場合は`null`になります。

Why

#612

Additional info (optional)

@salano-ym salano-ym merged commit f16c567 into aiscript-dev:master Jul 10, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants