feat: FT208 itertools — chain / islice / groupby / product / combinations#577
Merged
Conversation
…ions (Closes #576) - chain: 複数リスト結合(合計アイテム数 500 上限) - islice: ページング処理(has_more フラグ付き) - groupby: ソート後にキー別グループ化(groupby はソート必須を実証) - product: デカルト積(結果数 500 上限の事前チェック付き) - combinations / with_replacement: math.comb による結果数事前チェックで爆発防御 - takewhile / dropwhile: 閾値による先頭連続分割 - クラッカーペンテスト: 堅牢(12 攻撃ブロック、爆発 DoS 修正 F-1 含む) - 26 tests passed / mypy strict / ruff clean Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chain: 複数リスト結合(合計アイテム数 500 上限)islice: ページング処理(has_more フラグ付き)groupby: ソート後グループ化(ソート必須を実証)product: デカルト積(結果数 500 上限の事前チェック)combinations/combinations_with_replacement:math.combで結果数事前チェックtakewhile/dropwhile: 閾値による先頭連続分割Closes #576
Test plan
uv run pytest— 26 passed in sandboxuv run mypy— no issuesuv run ruff check/ruff format --check— all passed🤖 Generated with Claude Code