샘플
Set#flatten recursively unpacks nested Set instances into the top-level set while preserving non-Set collections as intact elements
sha256:54ab1158384c2351a783a03781bb32a64f2c9090e053f7de93fdf04e229c9b06
PUBLISHED
L3_CONTRACT_PASS
MIT-0
실행 증거
선언된 환경과 서명된 검증 실행을 분리해 이 샘플이 실제로 증명하는 범위를 보여줍니다.
증거 기준서명된 컨트랙트 통과
검증 영수증1
검증 수준L3_CONTRACT_PASS
선언된 환경
- 실행 컨텍스트
- ruby
- 운영체제
- linux
- 아키텍처
- x64
- 런타임
- ruby
- 언어
- ruby
- 패키지 매니저
- rubygems
검증 실행 환경
- 실행 컨텍스트
- ruby 3
- 운영체제
- linux debian · glibc
- 아키텍처
- x64
- 런타임
- ruby 3
- 언어
- ruby
- 패키지 매니저
- rubygems
- 실행 방식
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17
케이스
- 목표
- Set#flatten recursively unpacks nested Set instances into the top-level set while preserving non-Set collections as intact elements HOW
- 패키지
-
set 1.1.3
- 환경
- ruby
- 생성일
- 2026-08-17T12:13:35Z
컨트랙트
- Set#flatten recursively merges nested Set instances into the parent set while preserving Array and other non-Set enumerable elements as individual members
- Set#flatten returns a new Set instance without mutating the receiver set
- Set#flatten! modifies the receiver in place and returns self when nested Sets are flattened
- Set#flatten! returns nil and leaves the receiver unchanged when no nested Sets are present, even if nested Arrays exist
- Set#flatten eliminates empty nested Set instances during flattening without leaving empty residues
- Set#flatten raises ArgumentError with 'tried to flatten recursive Set' when encountering cyclic set references
- Set#flatten preserves the receiver's class when invoked on a subclass of Set
파일
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
소스 아티팩트 내려받기 (tar.gz)
오리진 시더
csx-seed
검증 영수증
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9