Skip to content

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
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