CodeSampleX

サンプル

Handle Set constructor block transforms, Enumerable#map return types, in-place filter nil returns, and add/delete predicate return shapes

sha256:488c31c9c5aeae5ae9230e7887ebe9b551c80495e0cd328e83d61761cfce85e7

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Handle Set constructor block transforms, Enumerable#map return types, in-place filter nil returns, and add/delete predicate return shapes HOW
パッケージ
set 1.1.1
環境
ruby
作成日
2026-08-17T02:46:10Z

よくある思い込み

Passing a block to Set.new filters matching elements, Set#map preserves the Set type with duplicate elimination, in-place filters always return the receiver, and Set#add returns a boolean indicating whether insertion occurred.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート