Skip to content

feat: drop_while を追加する #67

@github-actions

Description

@github-actions

概要

drop_while(array $input, callable $predicate, Mode $mode = Mode::MODE_AUTO): array を実装する。先頭から条件成立中の要素を除外し、境界以降を返す。

背景

親 Issue: #56
Milestone: feat: 不足した関数のタスク化

実装メモ

  • 先頭から評価し、初回不一致位置を境界として残りを返す。
  • mode に従ってキー保持/連番化する。
  • 全件一致/先頭不一致/途中不一致/空配列をテストする。

依存関係

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions