CodeSampleX

サンプル

Acknowledge that IterableExtension.sample before 1.19.0 retains the original sequence when count equals length.

sha256:c6c2b720e913c47eb8f6dddaa97094bb03800d936bdc2c9f292cdcffd7d37401

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Acknowledge that IterableExtension.sample before 1.19.0 retains the original sequence when count equals length. HOW
パッケージ
collection 1.18.0
環境
dart
作成日
2026-08-17T02:51:44Z

よくある思い込み

IterableExtension.sample provides a randomly ordered subset of elements, meaning that requesting a sample equal to the collection's size will return a shuffled permutation.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート