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.every、arr.someを追加 #620

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

salano-ym
Copy link
Member

What

arr.everyarr.someを追加します。

@(v: arr).every(func: @(item: value, index: num) { bool }): bool

配列の全ての要素に対して func が true を返す時のみ true 返します。空配列には常に true を返します。

@(v: arr).some(func: @(item: value, index: num) { bool }): bool

配列の要素に対して func が true を返す要素が存在する時のみ true 返します。

Why

#612

Additional info (optional)

@salano-ym salano-ym self-assigned this Apr 11, 2024
@salano-ym
Copy link
Member Author

マージ条件を満たしたのでマージします

@salano-ym salano-ym merged commit 7817f8c into aiscript-dev:master Apr 22, 2024
4 checks passed
@salano-ym salano-ym deleted the arr-every-some branch May 13, 2024 02:07
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