Skip to content

feat: chunk を追加する #70

@github-actions

Description

@github-actions

概要

chunk(array $input, int $size, Mode $mode = Mode::MODE_AUTO): array を実装する。固定サイズ単位で分割し list<array> を返す。

背景

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

実装メモ

  • size <= 0InvalidArgumentException
  • 各チャンク内部は 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