Skip to content

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 salano-ym requested a review from FineArchs April 14, 2024 08:20
@salano-ym
Copy link
Member Author

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

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