Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/r/ruby-hamster/ruby-hamster_3.0.0-2_all.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/ruby-hamster-3.0.0-2gmx7gywa/ruby-hamster_3.0.0-2_all.buildinfo Get source package info: ruby-hamster=3.0.0-2 Source URL: http://snapshot.notset.fr/mr/package/ruby-hamster/3.0.0-2/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-10 automake=1:1.15-6 autopoint=0.19.8.1-2 autotools-dev=20161112.1 base-files=9.8 base-passwd=3.5.43 bash=4.4-4 binutils=2.27.90.20170124-2 bsdmainutils=9.0.12 bsdutils=1:2.29.1-1 build-essential=12.3 bzip2=1.0.6-8.1 ca-certificates=20161130 coreutils=8.26-2 cpp=4:6.3.0-1 cpp-6=6.3.0-5 dash=0.5.8-2.4 debconf=1.5.60 debhelper=10.2.5 debianutils=4.8.1 devscripts=2.17.1 dh-autoreconf=13 dh-python=2.20170125 dh-strip-nondeterminism=0.029-2 diffutils=1:3.5-3 dpkg=1.18.22 dpkg-dev=1.18.22 e2fslibs=1.43.4-2 e2fsprogs=1.43.4-2 file=1:5.29-3 findutils=4.6.0+git+20161106-1 g++=4:6.3.0-1 g++-6=6.3.0-5 gcc=4:6.3.0-1 gcc-6=6.3.0-5 gcc-6-base=6.3.0-5 gem2deb=0.33.1 gem2deb-test-runner=0.33.1 gettext=0.19.8.1-2 gettext-base=0.19.8.1-2 grep=2.27-2 groff-base=1.22.3-9 gzip=1.6-5 hostname=3.18 init-system-helpers=1.47 intltool-debian=0.35.0+20060710.4 libacl1=2.2.52-3 libarchive-zip-perl=1.59-1 libasan3=6.3.0-5 libatomic1=6.3.0-5 libattr1=1:2.4.47-2 libaudit-common=1:2.6.7-1 libaudit1=1:2.6.7-1 libblkid1=2.29.1-1 libbsd0=0.8.3-1 libbz2-1.0=1.0.6-8.1 libc-bin=2.24-9 libc-dev-bin=2.24-9 libc6=2.24-9 libc6-dev=2.24-9 libcap-ng0=0.7.7-3 libcc1-0=6.3.0-5 libcilkrts5=6.3.0-5 libcomerr2=1.43.4-2 libcroco3=0.6.11-2 libdb5.3=5.3.28-12+b1 libdebconfclient0=0.222 libdpkg-perl=1.18.22 libexpat1=2.2.0-2 libfdisk1=2.29.1-1 libffi6=3.2.1-6 libfile-stripnondeterminism-perl=0.029-2 libgcc-6-dev=6.3.0-5 libgcc1=1:6.3.0-5 libgcrypt20=1.7.6-1 libgdbm3=1.8.3-14 libglib2.0-0=2.50.2-2 libgmp-dev=2:6.1.2+dfsg-1 libgmp10=2:6.1.2+dfsg-1 libgmpxx4ldbl=2:6.1.2+dfsg-1 libgomp1=6.3.0-5 libgpg-error0=1.26-2 libicu57=57.1-5 libisl15=0.18-1 libitm1=6.3.0-5 liblsan0=6.3.0-5 liblz4-1=0.0~r131-2 liblzma5=5.2.2-1.2 libmagic-mgc=1:5.29-3 libmagic1=1:5.29-3 libmount1=2.29.1-1 libmpc3=1.0.3-1 libmpdec2=2.4.2-1 libmpfr4=3.1.5-1 libmpx2=6.3.0-5 libncurses5=6.0+20161126-1 libncursesw5=6.0+20161126-1 libpam-modules=1.1.8-3.5 libpam-modules-bin=1.1.8-3.5 libpam-runtime=1.1.8-3.5 libpam0g=1.1.8-3.5 libpcre3=2:8.39-2 libperl5.24=5.24.1-1 libpipeline1=1.4.1-2 libpython3-stdlib=3.5.3-1 libpython3.5-minimal=3.5.3-1 libpython3.5-stdlib=3.5.3-1 libquadmath0=6.3.0-5 libreadline7=7.0-2 libruby2.3=2.3.3-1 libselinux1=2.6-3 libsemanage-common=2.6-2 libsemanage1=2.6-2 libsepol1=2.6-2 libsigsegv2=2.10-5 libsmartcols1=2.29.1-1 libsqlite3-0=3.16.2-2 libss2=1.43.4-2 libssl1.0.2=1.0.2k-1 libssl1.1=1.1.0d-2 libstdc++-6-dev=6.3.0-5 libstdc++6=6.3.0-5 libsystemd0=232-15 libtimedate-perl=2.3000-2 libtinfo5=6.0+20161126-1 libtool=2.4.6-2 libtsan0=6.3.0-5 libubsan0=6.3.0-5 libudev1=232-15 libunistring0=0.9.6+really0.9.3-0.1 libustr-1.0-1=1.0.4-6 libuuid1=2.29.1-1 libxml2=2.9.4+dfsg1-2.2 libyaml-0-2=0.1.7-2 linux-libc-dev=4.9.6-3 login=1:4.4-3 m4=1.4.18-1 make=4.1-9 man-db=2.7.6.1-2 mawk=1.3.3-17 mime-support=3.60 mount=2.29.1-1 multiarch-support=2.24-9 ncurses-base=6.0+20161126-1 ncurses-bin=6.0+20161126-1 openssl=1.1.0d-2 passwd=1:4.4-3 patch=2.7.5-1 perl=5.24.1-1 perl-base=5.24.1-1 perl-modules-5.24=5.24.1-1 po-debconf=1.0.20 pry=0.10.3-2 python3=3.5.3-1 python3-minimal=3.5.3-1 python3.5=3.5.3-1 python3.5-minimal=3.5.3-1 rake=10.5.0-2 readline-common=7.0-2 ruby=1:2.3.3 ruby-all-dev=1:2.3.3 ruby-coderay=1.1.1-1 ruby-concurrent=1.0.0-3 ruby-did-you-mean=1.0.0-2 ruby-diff-lcs=1.2.5-2 ruby-method-source=0.8.2-2 ruby-minitest=5.9.0-1 ruby-net-telnet=0.1.1-2 ruby-power-assert=0.3.0-1 ruby-rspec=3.5.0c3e0m0s0-1 ruby-rspec-core=3.5.0c3e0m0s0-1 ruby-rspec-expectations=3.5.0c3e0m0s0-1 ruby-rspec-mocks=3.5.0c3e0m0s0-1 ruby-rspec-support=3.5.0c3e0m0s0-1 ruby-setup=3.4.1-9 ruby-test-unit=3.1.7-2 ruby-thread-order=1.1.0-1 ruby2.3=2.3.3-1 ruby2.3-dev=2.3.3-1 rubygems-integration=1.11 sed=4.4-1 sensible-utils=0.0.9 sysvinit-utils=2.88dsf-59.8 tar=1.29b-1.1 util-linux=2.29.1-1 xz-utils=5.2.2-1.2 zlib1g=1:1.2.8.dfsg-5 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20170206T032006Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d ruby-hamster=3.0.0-2 && mkdir -p /build/ruby-hamster-rs4TZB && dpkg-source --no-check -x /*.dsc /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0 && chown -R builduser:builduser /build/ruby-hamster-rs4TZB" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0 && env DEB_BUILD_OPTIONS="parallel=4" SOURCE_DATE_EPOCH="1486507010" dpkg-buildpackage -uc -a amd64 --build=all" --customize-hook=sync-out /build/ruby-hamster-rs4TZB /tmp/ruby-hamster-3.0.0-2gmx7gywa stretch /dev/null deb http://snapshot.notset.fr/archive/debian/20170206T032006Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.yluXHEvpGg as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.yluXHEvpGg Reading package lists... Building dependency tree... util-linux is already the newest version (2.29.1-1). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 131 kB of archives. After this operation, 374 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20170206T032006Z unstable/main amd64 libfakeroot amd64 1.21-3.1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20170206T032006Z unstable/main amd64 fakeroot amd64 1.21-3.1 [85.6 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 131 kB in 0s (626 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4387 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.21-3.1_amd64.deb ... Unpacking libfakeroot:amd64 (1.21-3.1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.21-3.1_amd64.deb ... Unpacking fakeroot (1.21-3.1) ... Processing triggers for libc-bin (2.24-9) ... Setting up libfakeroot:amd64 (1.21-3.1) ... Setting up fakeroot (1.21-3.1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.24-9) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20170206T032006Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.yluXHEvpGg Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20170206T032006Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 22s (1017 kB/s) Reading package lists... W: Problem unlinking the file auxfiles - Clean (21: Is a directory) I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.yluXHEvpGg I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d ruby-hamster=3.0.0-2 && mkdir -p /build/ruby-hamster-rs4TZB && dpkg-source --no-check -x /*.dsc /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0 && chown -R builduser:builduser /build/ruby-hamster-rs4TZB"' exec /tmp/mmdebstrap.yluXHEvpGg Reading package lists... NOTICE: 'ruby-hamster' packaging is maintained in the 'Git' version control system at: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-hamster.git Please use: git clone https://anonscm.debian.org/git/pkg-ruby-extras/ruby-hamster.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 134 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-hamster 3.0.0-2 (dsc) [1756 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-hamster 3.0.0-2 (tar) [129 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-hamster 3.0.0-2 (diff) [2952 B] Fetched 134 kB in 0s (755 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'ruby-hamster_3.0.0-2.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting ruby-hamster in /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0 dpkg-source: info: unpacking ruby-hamster_3.0.0.orig.tar.gz dpkg-source: info: unpacking ruby-hamster_3.0.0-2.debian.tar.xz dpkg-source: info: applying 01-remove-code-climate.patch dpkg-source: info: applying 0002-skip-timing-sensitive-test.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0 && env DEB_BUILD_OPTIONS="parallel=4" SOURCE_DATE_EPOCH="1486507010" dpkg-buildpackage -uc -a amd64 --build=all"' exec /tmp/mmdebstrap.yluXHEvpGg dpkg-buildpackage: info: source package ruby-hamster dpkg-buildpackage: info: source version 3.0.0-2 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Cédric Boutillier dpkg-source --before-build ruby-hamster-3.0.0 fakeroot debian/rules clean dh clean --buildsystem=ruby --with ruby dh_testdir -O--buildsystem=ruby dh_auto_clean -O--buildsystem=ruby dh_ruby --clean dh_ruby --clean dh_clean -O--buildsystem=ruby debian/rules build-indep dh build-indep --buildsystem=ruby --with ruby dh_testdir -i -O--buildsystem=ruby dh_update_autotools_config -i -O--buildsystem=ruby dh_auto_configure -i -O--buildsystem=ruby dh_ruby --configure dh_auto_build -i -O--buildsystem=ruby dh_ruby --build dh_ruby --build dh_auto_test -i -O--buildsystem=ruby dh_ruby --test create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary-indep dh binary-indep --buildsystem=ruby --with ruby create-stamp debian/debhelper-build-stamp dh_testroot -i -O--buildsystem=ruby dh_prep -i -O--buildsystem=ruby dh_auto_install -i -O--buildsystem=ruby dh_ruby --install /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster dh_ruby --install ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install files │ └──────────────────────────────────────────────────────────────────────────────┘ install -d /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/core_ext.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/core_ext.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/sorted_set.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/sorted_set.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/nested.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/nested.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/version.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/version.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/undefined.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/undefined.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/deque.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/deque.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/vector.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/vector.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/trie.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/trie.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/mutable_hash.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/mutable_hash.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/associable.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/associable.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/immutable.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/immutable.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/experimental/mutable_queue.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/experimental/mutable_queue.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/experimental/mutable_set.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/experimental/mutable_set.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/list.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/list.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/enumerable.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/enumerable.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/core_ext/io.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/core_ext/io.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/core_ext/enumerable.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/core_ext/enumerable.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/core_ext/struct.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/core_ext/struct.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/read_copy_update.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/read_copy_update.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/set.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/set.rb install -D -m644 /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/lib/hamster/hash.rb /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby/hamster/hash.rb ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install Rubygems integration metadata │ └──────────────────────────────────────────────────────────────────────────────┘ generating gemspec at /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/share/rubygems-integration/all/specifications/hamster-3.0.0.gemspec /usr/bin/ruby2.3 /usr/bin/gem2deb-test-runner ┌──────────────────────────────────────────────────────────────────────────────┐ │ Checking Rubygems dependency resolution on ruby2.3 │ └──────────────────────────────────────────────────────────────────────────────┘ GEM_PATH=debian/ruby-hamster/usr/share/rubygems-integration/all:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all ruby2.3 -e gem\ \"hamster\" ┌──────────────────────────────────────────────────────────────────────────────┐ │ Run tests for ruby2.3 from debian/ruby-tests.rake │ └──────────────────────────────────────────────────────────────────────────────┘ RUBYLIB=/build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/debian/ruby-hamster/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-hamster/usr/share/rubygems-integration/all:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all ruby2.3 -S rake -f debian/ruby-tests.rake /usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation Hamster::Associable #update_in with one level on existing key Hash passes the value to the block Vector passes the value to the block Hash replaces the value with the result of the block Vector replaces the value with the result of the block Hash should preserve the original Vector should preserve the original with multi-level on existing keys Hash passes the value to the block Vector passes the value to the block Hash replaces the value with the result of the block Vector replaces the value with the result of the block Hash should preserve the original Vector should preserve the original with multi-level creating sub-hashes when keys don't exist Hash passes nil to the block Vector passes nil to the block Hash creates subhashes on the way to set the value Vector creates subhashes on the way to set the value Hash with multi-level including Vector with existing keys passes the value to the block replaces the value with the result of the block should preserve the original Vector with multi-level including Hash with existing keys passes the value to the block replaces the value with the result of the block should preserve the original with empty key_path Hash raises ArguemntError Vector raises ArguemntError Array #to_list returns an equivalent hamster list Enumerable #to_list returns an equivalent list works on Ranges IO #to_list with a File returns an equivalent list with a StringIO returns an equivalent list Hamster::Deque #clear on [] preserves the original returns an empty deque on ["A"] preserves the original returns an empty deque on ["A", "B", "C"] preserves the original returns an empty deque from a subclass returns an instance of the subclass Hamster::Deque .[] with no arguments always returns the same instance returns an empty, frozen deque with a number of items always returns a different instance is the same as repeatedly using #endeque Hamster::Deque on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self Hamster::Deque #dequeue on [] preserves the original returns [] on ["A"] preserves the original returns [] on ["A", "B", "C"] preserves the original returns ["B", "C"] on empty subclass returns emtpy object of same class #shift on [] preserves the original returns [] on ["A"] preserves the original returns [] on ["A", "B", "C"] preserves the original returns ["B", "C"] on empty subclass returns emtpy object of same class Hamster::Deque #empty? on [] returns true on ["A"] returns false on ["A", "B", "C"] returns false after dedequeing an item from ["A", "B", "C"] returns false .empty returns the canonical empty deque from a subclass returns an empty instance of the subclass Hamster::Deque #enqueue on [] with "A" preserves the original returns ["A"] on ["A"] with "B" preserves the original returns ["A", "B"] on ["A"] with "A" preserves the original returns ["A", "A"] on ["A", "B", "C"] with "D" preserves the original returns ["A", "B", "C", "D"] #push on [] with "A" preserves the original returns ["A"] on ["A"] with "B" preserves the original returns ["A", "B"] on ["A"] with "A" preserves the original returns ["A", "A"] on ["A", "B", "C"] with "D" preserves the original returns ["A", "B", "C", "D"] Hamster::Deque #first on [] returns nil on ["A"] returns "A" on ["A", "B", "C"] returns "A" Hamster::Deque #inspect on [] returns "Hamster::Deque[]" returns a string which can be eval'd to get an equivalent object on ["A"] returns "Hamster::Deque[\"A\"]" returns a string which can be eval'd to get an equivalent object on ["A", "B", "C"] returns "Hamster::Deque[\"A\", \"B\", \"C\"]" returns a string which can be eval'd to get an equivalent object Hamster::Deque #last on [] returns nil on ["A"] returns "A" on ["A", "B", "C"] returns "C" Hamster::Deque #marshal_dump/#marshal_load can survive dumping and loading into a new process is still possible to push and pop items after loading Hamster::Deque .new accepts a single enumerable argument and creates a new deque is amenable to overriding of #initialize from a subclass returns a frozen instance of the subclass .[] accepts a variable number of items and creates a new deque Hamster::Deque #pop on [] preserves the original returns [] returns a frozen instance on ["A"] preserves the original returns [] returns a frozen instance on ["A", "B", "C"] preserves the original returns ["A", "B"] returns a frozen instance on empty subclass returns emtpy object of same class Hamster::Deque #pretty_print prints the whole Deque on one line if it fits prints each item on its own line, if not Hamster::Deque #push pushing "A" into [] preserves the original returns ["A"] returns a frozen instance pushing "B" into ["A"] preserves the original returns ["A", "B"] returns a frozen instance pushing "D" into ["A", "B", "C"] preserves the original returns ["A", "B", "C", "D"] returns a frozen instance on a subclass returns an object of same class Hamster::Deque modification (using #push, #pop, #shift, and #unshift) works when applied in many random combinations Hamster::Deque #shift on [] preserves the original returns [] returns a frozen instance on ["A"] preserves the original returns [] returns a frozen instance on ["A", "B", "C"] preserves the original returns ["B", "C"] returns a frozen instance Hamster::Deque #size on [] returns 0 on ["A"] returns 1 on ["A", "B", "C"] returns 3 #length on [] returns 0 on ["A"] returns 1 on ["A", "B", "C"] returns 3 Hamster::Deque #to_a on [] returns [] returns a mutable array on ["A"] returns ["A"] returns a mutable array on ["A", "B", "C"] returns ["A", "B", "C"] returns a mutable array #entries on [] returns [] returns a mutable array on ["A"] returns ["A"] returns a mutable array on ["A", "B", "C"] returns ["A", "B", "C"] returns a mutable array Hamster::Deque #to_ary enables implicit conversion to block parameters method arguments works with splat Hamster::Deque #to_list on [] returns a list containing [] on ["A"] returns a list containing ["A"] on ["A", "B", "C"] returns a list containing ["A", "B", "C"] after dedequeing an item from ["A", "B", "C"] returns a list containing ["B", "C"] Hamster::Deque #unshift on [] with "A" preserves the original returns ["A"] returns a frozen instance on ["A"] with "B" preserves the original returns ["B", "A"] returns a frozen instance on ["A"] with "A" preserves the original returns ["A", "A"] returns a frozen instance on ["A", "B", "C"] with "D" preserves the original returns ["D", "A", "B", "C"] returns a frozen instance Hamster::MutableSet #add? with a unique value returns true modifies the set to include the new value with a duplicate value returns false preserves the original values Hamster::MutableSet #add with a unique value returns self modifies the original set to include new value with a duplicate value returns self preserves the original values Hamster::MutableSet #delete? with an existing value returns true modifies the set to remove the value with a non-existing value returns false preserves the original values Hamster::MutableSet #delete with an existing value returns self modifies the set to remove the value with a non-existing value returns self preserves the original values Hamster::Hash #all? when empty without a block returns true with a block returns true when not empty without a block returns true with a block returns true if the block always returns true returns false if the block ever returns false propagates an exception from the block stops iterating as soon as the block returns false Hamster::Hash #any? when empty with a block returns false with no block returns false when not empty with a block returns true if the block ever returns true (["A", "aye"]) returns false if the block always returns false returns true if the block ever returns true (["B", "bee"]) returns false if the block always returns false returns true if the block ever returns true (["C", "see"]) returns false if the block always returns false returns true if the block ever returns true ([nil, "NIL"]) returns false if the block always returns false propagates exceptions raised in the block stops iterating as soon as the block returns true with no block returns true Hamster::Hash #assoc searches for a key/val pair with a given key returns nil if a matching key is not found returns nil even if there is a default uses #== to compare keys with provided object #rassoc searches for a key/val pair with a given value returns nil if a matching value is not found returns nil even if there is a default uses #== to compare values with provided object Hamster::Hash #clear maintains the default Proc, if there is one on [] preserves the original returns an empty hash on [{"A"=>"aye"}] preserves the original returns an empty hash on [{"A"=>"aye", "B"=>"bee", "C"=>"see"}] preserves the original returns an empty hash on a subclass returns an empty instance of the subclass Hamster::Hash .hash with nothing returns the canonical empty hash with an implicit hash is equivalent to repeatedly using #put with an array of pairs initializes a new Hash with a Hamster::Hash initializes an equivalent Hash Hamster::Hash #dup returns self #clone returns self Hamster::Hash #default_proc returns the default block given when the Hash was created returns nil if no default block was given after a key/val pair are inserted doesn't change after all key/val pairs are filtered out doesn't change after Hash is inverted doesn't change when a slice is taken doesn't change when keys are removed with #except doesn't change when Hash is mapped doesn't change when another Hash is merged in doesn't change Hamster::Hash #delete with an existing key preserves the original returns a copy with the remaining key/value pairs with a non-existing key preserves the original values returns self when removing the last key from a Hash with no default block returns the canonical empty Hash Hamster::Hash #dig returns the value with one argument to dig returns the value in nested hashes returns nil if the key is not present returns nil if you dig out the end of the hash returns nil if a value does not support dig returns the correct value when there is a default proc Hamster::Hash #each with a block (internal iteration) returns self yields all key/value pairs yields key/value pairs in the same order as #each_key and #each_value yields both of a pair of colliding keys yields only the key to a block expecting |key,| with no block returns an Enumerator #each_pair with a block (internal iteration) returns self yields all key/value pairs yields key/value pairs in the same order as #each_key and #each_value yields both of a pair of colliding keys yields only the key to a block expecting |key,| with no block returns an Enumerator #each_key yields all keys with no block returns an Enumerator #each_value yields all values with no block returns an Enumerator Hamster::Hash #each_with_index with a block (internal iteration) returns self yields all key/value pairs with numeric indexes with no block returns an Enumerator Hamster::Hash #empty? returns true for [] returns false for [{"A"=>"aye"}] returns false for [{"A"=>"aye", "B"=>"bee", "C"=>"see"}] returns true for empty hashes which have a default block .empty returns the canonical empty Hash from a subclass returns an empty instance of the subclass calls overridden #initialize when creating empty Hash Hamster::Hash returns true on a large hash which is modified and then modified back again #eql? returns false when comparing with a standard hash returns false when comparing with an arbitrary object returns false when comparing with a subclass of Hamster::Hash #== returns true when comparing with a standard hash returns false when comparing with an arbitrary object returns true when comparing with a subclass of Hamster::Hash #eql? returns true for {} and {} for {} and {} returns false for {"A"=>"aye"} and {} for {} and {"A"=>"aye"} returns false for {} and {"A"=>"aye"} for {"A"=>"aye"} and {} returns true for {"A"=>"aye"} and {"A"=>"aye"} for {"A"=>"aye"} and {"A"=>"aye"} returns false for {"A"=>"aye"} and {"B"=>"bee"} for {"B"=>"bee"} and {"A"=>"aye"} returns false for {"A"=>"aye", "B"=>"bee"} and {"A"=>"aye"} for {"A"=>"aye"} and {"A"=>"aye", "B"=>"bee"} returns false for {"A"=>"aye"} and {"A"=>"aye", "B"=>"bee"} for {"A"=>"aye", "B"=>"bee"} and {"A"=>"aye"} returns true for {"A"=>"aye", "B"=>"bee", "C"=>"see"} and {"A"=>"aye", "B"=>"bee", "C"=>"see"} for {"A"=>"aye", "B"=>"bee", "C"=>"see"} and {"A"=>"aye", "B"=>"bee", "C"=>"see"} returns true for {"C"=>"see", "A"=>"aye", "B"=>"bee"} and {"A"=>"aye", "B"=>"bee", "C"=>"see"} for {"A"=>"aye", "B"=>"bee", "C"=>"see"} and {"C"=>"see", "A"=>"aye", "B"=>"bee"} #== returns true for {} and {} for {} and {} returns false for {"A"=>"aye"} and {} for {} and {"A"=>"aye"} returns false for {} and {"A"=>"aye"} for {"A"=>"aye"} and {} returns true for {"A"=>"aye"} and {"A"=>"aye"} for {"A"=>"aye"} and {"A"=>"aye"} returns false for {"A"=>"aye"} and {"B"=>"bee"} for {"B"=>"bee"} and {"A"=>"aye"} returns false for {"A"=>"aye", "B"=>"bee"} and {"A"=>"aye"} for {"A"=>"aye"} and {"A"=>"aye", "B"=>"bee"} returns false for {"A"=>"aye"} and {"A"=>"aye", "B"=>"bee"} for {"A"=>"aye", "B"=>"bee"} and {"A"=>"aye"} returns true for {"A"=>"aye", "B"=>"bee", "C"=>"see"} and {"A"=>"aye", "B"=>"bee", "C"=>"see"} for {"A"=>"aye", "B"=>"bee", "C"=>"see"} and {"A"=>"aye", "B"=>"bee", "C"=>"see"} returns true for {"C"=>"see", "A"=>"aye", "B"=>"bee"} and {"A"=>"aye", "B"=>"bee", "C"=>"see"} for {"A"=>"aye", "B"=>"bee", "C"=>"see"} and {"C"=>"see", "A"=>"aye", "B"=>"bee"} Hamster::Hash #except works on a large Hash, with many combinations of input with only keys that the Hash has returns a Hash without those values doesn't change the original Hash with keys that the Hash doesn't have returns a Hash without the values that it had keys for doesn't change the original Hash Hamster::Hash #fetch gives precedence to default block over default argument if passed both raises an ArgumentError when not passed one or 2 arguments with no default provided when the key exists returns the value associated with the key when the key does not exist raises a KeyError with a default value when the key exists returns the value associated with the key when the key does not exist returns the default value with a default block when the key exists returns the value associated with the key when the key does not exist invokes the default block with the missing key as paramter Hamster::Hash #fetch_values when the all the requests keys exist returns a vector of values for the given keys when the key does not exist raises a KeyError Hamster::Hash #find stops iterating when the block returns true on [] with a block returns nil without a block returns an Enumerator on [] with a block returns nil without a block returns an Enumerator on [{"A"=>"aye"}] with a block returns ["A", "aye"] without a block returns an Enumerator on [{"A"=>"aye"}] with a block returns nil without a block returns an Enumerator on [{"A"=>"aye"}] with a block returns nil without a block returns an Enumerator on [{"A"=>"aye", "B"=>"bee", nil=>"NIL"}] with a block returns ["A", "aye"] without a block returns an Enumerator on [{"A"=>"aye", "B"=>"bee", nil=>"NIL"}] with a block returns ["B", "bee"] without a block returns an Enumerator on [{"A"=>"aye", "B"=>"bee", nil=>"NIL"}] with a block returns [nil, "NIL"] without a block returns an Enumerator on [{"A"=>"aye", "B"=>"bee", nil=>"NIL"}] with a block returns nil without a block returns an Enumerator #detect stops iterating when the block returns true on [] with a block returns nil without a block returns an Enumerator on [] with a block returns nil without a block returns an Enumerator on [{"A"=>"aye"}] with a block returns ["A", "aye"] without a block returns an Enumerator on [{"A"=>"aye"}] with a block returns nil without a block returns an Enumerator on [{"A"=>"aye"}] with a block returns nil without a block returns an Enumerator on [{"A"=>"aye", "B"=>"bee", nil=>"NIL"}] with a block returns ["A", "aye"] without a block returns an Enumerator on [{"A"=>"aye", "B"=>"bee", nil=>"NIL"}] with a block returns ["B", "bee"] without a block returns an Enumerator on [{"A"=>"aye", "B"=>"bee", nil=>"NIL"}] with a block returns [nil, "NIL"] without a block returns an Enumerator on [{"A"=>"aye", "B"=>"bee", nil=>"NIL"}] with a block returns nil without a block returns an Enumerator Hamster::Hash #flat_map yields each key/val pair returns the concatenation of block return values doesn't change the receiver returns an empty array if only empty arrays are returned by block with no block returns an Enumerator Hamster::Hash #flatten with flatten depth of zero returns a vector of keys/value without array keys or values returns a vector of keys and values doesn't modify the receiver on an empty Hash returns an empty Vector with array keys flattens array keys into returned vector if flatten depth is sufficient doesn't modify the receiver (or its contents) with array values flattens array values into returned vector if flatten depth is sufficient doesn't modify the receiver (or its contents) with vector keys flattens vector keys into returned vector if flatten depth is sufficient with vector values flattens vector values into returned vector if flatten depth is sufficient Hamster::Hash #get uses #hash to look up keys uses #eql? to compare keys with the same hash code does not use #eql? to compare keys with different hash codes with a default block when the key exists returns the value associated with the key does not call the default block even if the key is 'nil' when the key does not exist returns the value from the default block with no default block returns the value ("aye") for an existing key ("A") returns the value ("bee") for an existing key ("B") returns the value ("see") for an existing key ("C") returns the value ("NIL") for an existing key (nil) returns nil for a non-existing key #[] uses #hash to look up keys uses #eql? to compare keys with the same hash code does not use #eql? to compare keys with different hash codes with a default block when the key exists returns the value associated with the key does not call the default block even if the key is 'nil' when the key does not exist returns the value from the default block with no default block returns the value ("aye") for an existing key ("A") returns the value ("bee") for an existing key ("B") returns the value ("see") for an existing key ("C") returns the value ("NIL") for an existing key (nil) returns nil for a non-existing key Hamster::Hash #key? returns true for an existing key ("A") returns true for an existing key ("B") returns true for an existing key ("C") returns true for an existing key (nil) returns true for an existing key (2.0) returns false for a non-existing key uses #eql? for equality returns true if the key is found and maps to nil returns true if the key is found and maps to false #has_key? returns true for an existing key ("A") returns true for an existing key ("B") returns true for an existing key ("C") returns true for an existing key (nil) returns true for an existing key (2.0) returns false for a non-existing key uses #eql? for equality returns true if the key is found and maps to nil returns true if the key is found and maps to false #include? returns true for an existing key ("A") returns true for an existing key ("B") returns true for an existing key ("C") returns true for an existing key (nil) returns true for an existing key (2.0) returns false for a non-existing key uses #eql? for equality returns true if the key is found and maps to nil returns true if the key is found and maps to false #member? returns true for an existing key ("A") returns true for an existing key ("B") returns true for an existing key ("C") returns true for an existing key (nil) returns true for an existing key (2.0) returns false for a non-existing key uses #eql? for equality returns true if the key is found and maps to nil returns true if the key is found and maps to false Hamster::Hash #value? returns true if any key/val pair in Hash has the same value returns false if no key/val pair in Hash has the same value uses #== to check equality works on a large hash #has_value? returns true if any key/val pair in Hash has the same value returns false if no key/val pair in Hash has the same value uses #== to check equality works on a large hash Hamster::Hash #hash values are sufficiently distributed differs given the same keys and different values differs given the same values and different keys generates the same hash value for a hash regardless of the order things were added to it on an empty hash returns 0 Hamster::Hash includes Immutable Hamster::Hash #inspect on [] returns "Hamster::Hash[]" on [{"A"=>"aye"}] returns "Hamster::Hash[\"A\" => \"aye\"]" on [{"A"=>"aye", "B"=>"bee", "C"=>"see"}] returns "Hamster::Hash[\"A\" => \"aye\", \"B\" => \"bee\", \"C\" => \"see\"]" on {} returns a string which can be eval'd to get an equivalent object on {"A"=>"aye"} returns a string which can be eval'd to get an equivalent object on {:a=>"aye", :b=>"bee", :c=>"see"} returns a string which can be eval'd to get an equivalent object Hamster::Hash #invert uses the existing keys as values and values as keys will select one key/value pair among multiple which have same value doesn't change the original Hash from a subclass of Hash returns an instance of the subclass Hamster::Hash #key returns a key associated with the given value, if there is one returns nil if there is no key associated with the given value uses #== to compare values for equality doesn't use default block if value is not found Hamster::Hash #keys returns the keys as a set returns frozen String keys Hamster::Hash #map when empty returns self when not empty with a block preserves the original values returns a new hash with the mapped values with no block returns an Enumerator from a subclass returns an instance of the subclass #collect when empty returns self when not empty with a block preserves the original values returns a new hash with the mapped values with no block returns an Enumerator from a subclass returns an instance of the subclass Hamster::Hash #marshal_dump/#marshal_load can survive dumping and loading into a new process is still possible to find items by key after loading Hamster::Hash #merge sets any duplicate key to the value of block if passed a block yields key/value pairs in the same order as #each for {} and {} returns {} when passed a Hamster::Hash returns {} when passed a Ruby Hash doesn't change the original Hashes for {"A"=>"aye"} and {} returns {"A"=>"aye"} when passed a Hamster::Hash returns {"A"=>"aye"} when passed a Ruby Hash doesn't change the original Hashes for {"A"=>"aye"} and {"A"=>"bee"} returns {"A"=>"bee"} when passed a Hamster::Hash returns {"A"=>"bee"} when passed a Ruby Hash doesn't change the original Hashes for {"A"=>"aye"} and {"B"=>"bee"} returns {"A"=>"aye", "B"=>"bee"} when passed a Hamster::Hash returns {"A"=>"aye", "B"=>"bee"} when passed a Ruby Hash doesn't change the original Hashes for [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300]] and [[150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450]] returns [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450]] when passed a Hamster::Hash returns [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20], [21, 21], [22, 22], [23, 23], [24, 24], [25, 25], [26, 26], [27, 27], [28, 28], [29, 29], [30, 30], [31, 31], [32, 32], [33, 33], [34, 34], [35, 35], [36, 36], [37, 37], [38, 38], [39, 39], [40, 40], [41, 41], [42, 42], [43, 43], [44, 44], [45, 45], [46, 46], [47, 47], [48, 48], [49, 49], [50, 50], [51, 51], [52, 52], [53, 53], [54, 54], [55, 55], [56, 56], [57, 57], [58, 58], [59, 59], [60, 60], [61, 61], [62, 62], [63, 63], [64, 64], [65, 65], [66, 66], [67, 67], [68, 68], [69, 69], [70, 70], [71, 71], [72, 72], [73, 73], [74, 74], [75, 75], [76, 76], [77, 77], [78, 78], [79, 79], [80, 80], [81, 81], [82, 82], [83, 83], [84, 84], [85, 85], [86, 86], [87, 87], [88, 88], [89, 89], [90, 90], [91, 91], [92, 92], [93, 93], [94, 94], [95, 95], [96, 96], [97, 97], [98, 98], [99, 99], [100, 100], [101, 101], [102, 102], [103, 103], [104, 104], [105, 105], [106, 106], [107, 107], [108, 108], [109, 109], [110, 110], [111, 111], [112, 112], [113, 113], [114, 114], [115, 115], [116, 116], [117, 117], [118, 118], [119, 119], [120, 120], [121, 121], [122, 122], [123, 123], [124, 124], [125, 125], [126, 126], [127, 127], [128, 128], [129, 129], [130, 130], [131, 131], [132, 132], [133, 133], [134, 134], [135, 135], [136, 136], [137, 137], [138, 138], [139, 139], [140, 140], [141, 141], [142, 142], [143, 143], [144, 144], [145, 145], [146, 146], [147, 147], [148, 148], [149, 149], [150, 150], [151, 151], [152, 152], [153, 153], [154, 154], [155, 155], [156, 156], [157, 157], [158, 158], [159, 159], [160, 160], [161, 161], [162, 162], [163, 163], [164, 164], [165, 165], [166, 166], [167, 167], [168, 168], [169, 169], [170, 170], [171, 171], [172, 172], [173, 173], [174, 174], [175, 175], [176, 176], [177, 177], [178, 178], [179, 179], [180, 180], [181, 181], [182, 182], [183, 183], [184, 184], [185, 185], [186, 186], [187, 187], [188, 188], [189, 189], [190, 190], [191, 191], [192, 192], [193, 193], [194, 194], [195, 195], [196, 196], [197, 197], [198, 198], [199, 199], [200, 200], [201, 201], [202, 202], [203, 203], [204, 204], [205, 205], [206, 206], [207, 207], [208, 208], [209, 209], [210, 210], [211, 211], [212, 212], [213, 213], [214, 214], [215, 215], [216, 216], [217, 217], [218, 218], [219, 219], [220, 220], [221, 221], [222, 222], [223, 223], [224, 224], [225, 225], [226, 226], [227, 227], [228, 228], [229, 229], [230, 230], [231, 231], [232, 232], [233, 233], [234, 234], [235, 235], [236, 236], [237, 237], [238, 238], [239, 239], [240, 240], [241, 241], [242, 242], [243, 243], [244, 244], [245, 245], [246, 246], [247, 247], [248, 248], [249, 249], [250, 250], [251, 251], [252, 252], [253, 253], [254, 254], [255, 255], [256, 256], [257, 257], [258, 258], [259, 259], [260, 260], [261, 261], [262, 262], [263, 263], [264, 264], [265, 265], [266, 266], [267, 267], [268, 268], [269, 269], [270, 270], [271, 271], [272, 272], [273, 273], [274, 274], [275, 275], [276, 276], [277, 277], [278, 278], [279, 279], [280, 280], [281, 281], [282, 282], [283, 283], [284, 284], [285, 285], [286, 286], [287, 287], [288, 288], [289, 289], [290, 290], [291, 291], [292, 292], [293, 293], [294, 294], [295, 295], [296, 296], [297, 297], [298, 298], [299, 299], [300, 300], [301, 301], [302, 302], [303, 303], [304, 304], [305, 305], [306, 306], [307, 307], [308, 308], [309, 309], [310, 310], [311, 311], [312, 312], [313, 313], [314, 314], [315, 315], [316, 316], [317, 317], [318, 318], [319, 319], [320, 320], [321, 321], [322, 322], [323, 323], [324, 324], [325, 325], [326, 326], [327, 327], [328, 328], [329, 329], [330, 330], [331, 331], [332, 332], [333, 333], [334, 334], [335, 335], [336, 336], [337, 337], [338, 338], [339, 339], [340, 340], [341, 341], [342, 342], [343, 343], [344, 344], [345, 345], [346, 346], [347, 347], [348, 348], [349, 349], [350, 350], [351, 351], [352, 352], [353, 353], [354, 354], [355, 355], [356, 356], [357, 357], [358, 358], [359, 359], [360, 360], [361, 361], [362, 362], [363, 363], [364, 364], [365, 365], [366, 366], [367, 367], [368, 368], [369, 369], [370, 370], [371, 371], [372, 372], [373, 373], [374, 374], [375, 375], [376, 376], [377, 377], [378, 378], [379, 379], [380, 380], [381, 381], [382, 382], [383, 383], [384, 384], [385, 385], [386, 386], [387, 387], [388, 388], [389, 389], [390, 390], [391, 391], [392, 392], [393, 393], [394, 394], [395, 395], [396, 396], [397, 397], [398, 398], [399, 399], [400, 400], [401, 401], [402, 402], [403, 403], [404, 404], [405, 405], [406, 406], [407, 407], [408, 408], [409, 409], [410, 410], [411, 411], [412, 412], [413, 413], [414, 414], [415, 415], [416, 416], [417, 417], [418, 418], [419, 419], [420, 420], [421, 421], [422, 422], [423, 423], [424, 424], [425, 425], [426, 426], [427, 427], [428, 428], [429, 429], [430, 430], [431, 431], [432, 432], [433, 433], [434, 434], [435, 435], [436, 436], [437, 437], [438, 438], [439, 439], [440, 440], [441, 441], [442, 442], [443, 443], [444, 444], [445, 445], [446, 446], [447, 447], [448, 448], [449, 449], [450, 450]] when passed a Ruby Hash doesn't change the original Hashes when merging with an empty Hash returns self when merging with subset Hash returns self when called on a subclass returns an instance of the subclass Hamster::Hash #min returns the smallest key/val pair #max returns the largest key/val pair #min_by returns the smallest key/val pair (after passing it through a key function) returns the first key/val pair yielded by #each in case of a tie returns nil if the hash is empty #max_by returns the largest key/val pair (after passing it through a key function) returns the first key/val pair yielded by #each in case of a tie returns nil if the hash is empty Hamster::Hash .new is amenable to overriding of #initialize accepts an array as initializer returns a Hash which doesn't change even if initializer is mutated from a subclass returns a frozen instance of the subclass .[] accepts a Ruby Hash as initializer accepts a Hamster::Hash as initializer accepts an array as initializer can be used with a subclass of Hamster::Hash Hamster::Hash #none? when empty with a block returns true with no block returns true when not empty with a block returns false if the block ever returns true (["A", "aye"]) returns true if the block always returns false stops iterating as soon as the block returns true returns false if the block ever returns true (["B", "bee"]) returns true if the block always returns false stops iterating as soon as the block returns true returns false if the block ever returns true (["C", "see"]) returns true if the block always returns false stops iterating as soon as the block returns true returns false if the block ever returns true ([nil, "NIL"]) returns true if the block always returns false stops iterating as soon as the block returns true with no block returns false Hamster::Hash #partition returns a pair of Hamster::Hashes returns key/val pairs for which predicate is true in first Hash returns key/val pairs for which predicate is false in second Hash doesn't modify the original Hash from a subclass should return instances of the subclass Hamster::Hash #pretty_print prints the whole Hash on one line if it fits prints each key/val pair on its own line, if not prints keys and vals on separate lines, if space is very tight Hamster::Hash #put with a block passes the value to the block replaces the value with the result of the block supports to_proc methods if there is no existing association passes nil to the block stores the result of the block as the new value with a unique key preserves the original returns a copy with the superset of key/value pairs with a duplicate key preserves the original returns a copy with the superset of key/value pairs with duplicate key and identical value returns the original hash unmodified with big hash (force nested tries) returns the original hash unmodified for all changes with unequal keys which hash to the same value stores and can retrieve both when a String is inserted as key and then mutated is not affected Hamster::Hash #reduce when empty returns the memo when not empty with a block returns the final memo with no block uses a passed string as the name of a method to use instead uses a passed symbol as the name of a method to use instead #inject when empty returns the memo when not empty with a block returns the final memo with no block uses a passed string as the name of a method to use instead uses a passed symbol as the name of a method to use instead Hamster::Hash #reject when nothing matches returns self when only some things match with a block preserves the original returns a set with the matching values yields entries in the same order as #each with no block returns an Enumerator on a large hash, with many combinations of input still works #delete_if when nothing matches returns self when only some things match with a block preserves the original returns a set with the matching values yields entries in the same order as #each with no block returns an Enumerator on a large hash, with many combinations of input still works Hamster::Hash #reverse_each with a block returns self yields all key/value pairs in the opposite order as #each with no block returns an Enumerator Hamster::Hash #sample returns a randomly chosen item Hamster::Hash #select works on a large hash, with many combinations of input when everything matches returns self when only some things match yields entries as [key, value] pairs with a block preserves the original returns a set with the matching values with no block returns an Enumerator #find_all works on a large hash, with many combinations of input when everything matches returns self when only some things match yields entries as [key, value] pairs with a block preserves the original returns a set with the matching values with no block returns an Enumerator #keep_if works on a large hash, with many combinations of input when everything matches returns self when only some things match yields entries as [key, value] pairs with a block preserves the original returns a set with the matching values with no block returns an Enumerator Hamster::Hash #size returns 0 for [] returns 1 for [{"A"=>"aye"}] returns 3 for [{"A"=>"bee", "B"=>"bee", "C"=>"see"}] has the correct size after adding lots of things with colliding keys and such has the correct size after lots of addings and removings #length returns 0 for [] returns 1 for [{"A"=>"aye"}] returns 3 for [{"A"=>"bee", "B"=>"bee", "C"=>"see"}] has the correct size after adding lots of things with colliding keys and such has the correct size after lots of addings and removings Hamster::Hash #slice with all keys present in the Hash returns the sliced values doesn't modify the original Hash with keys aren't present in the Hash returns the sliced values of the matching keys doesn't modify the original Hash on a Hash with a default block maintains the default block Hamster::Hash #sort returns a Vector of sorted key/val pairs works on large hashes uses block as comparator to sort if passed a block #sort_by returns a Vector of key/val pairs, sorted using the block as a key function Hamster::Hash #store with a unique key preserves the original returns a copy with the superset of key/value pairs with a duplicate key preserves the original returns a copy with the superset of key/value pairs with duplicate key and identical value returns the original hash unmodified with big hash (force nested tries) returns the original hash unmodified for all changes with unequal keys which hash to the same value stores and can retrieve both when a String is inserted as key and then mutated is not affected Hamster::Hash #<= for {} and {} returns true for {"A"=>1} and {} returns false for {} and {"A"=>1} returns true for {"A"=>1} and {"A"=>1} returns true for {"A"=>1} and {"A"=>2} returns false for {"B"=>2} and {"A"=>1, "B"=>2, "C"=>3} returns true for {"A"=>1, "B"=>2, "C"=>3} and {"B"=>2} returns false for {"B"=>0} and {"A"=>1, "B"=>2, "C"=>3} returns false #< for {} and {} returns false for {"A"=>1} and {} returns false for {} and {"A"=>1} returns true for {"A"=>1} and {"A"=>1} returns false for {"A"=>1} and {"A"=>2} returns false for {"B"=>2} and {"A"=>1, "B"=>2, "C"=>3} returns true for {"A"=>1, "B"=>2, "C"=>3} and {"B"=>2} returns false for {"B"=>0} and {"A"=>1, "B"=>2, "C"=>3} returns false Hamster::Hash #>= for {} and {} returns true for {"A"=>1} and {} returns true for {} and {"A"=>1} returns false for {"A"=>1} and {"A"=>1} returns true for {"A"=>1} and {"A"=>2} returns false for {"A"=>1, "B"=>2, "C"=>3} and {"B"=>2} returns true for {"B"=>2} and {"A"=>1, "B"=>2, "C"=>3} returns false for {"A"=>1, "B"=>2, "C"=>3} and {"B"=>0} returns false #> for {} and {} returns false for {"A"=>1} and {} returns true for {} and {"A"=>1} returns false for {"A"=>1} and {"A"=>1} returns false for {"A"=>1} and {"A"=>2} returns false for {"A"=>1, "B"=>2, "C"=>3} and {"B"=>2} returns true for {"B"=>2} and {"A"=>1, "B"=>2, "C"=>3} returns false for {"A"=>1, "B"=>2, "C"=>3} and {"B"=>0} returns false Hamster::Hash #take returns the first N key/val pairs from hash #take_while passes elements to the block until the block returns nil/false returns an array of all elements before the one which returned nil/false passes all elements if the block never returns nil/false Hamster::Hash #to_a returns an Array of [key, value] pairs in same order as #each Hamster::Hash #to_hash converts an empty Hamster::Hash to an empty Ruby Hash converts a non-empty Hamster::Hash to a Hash with the same keys and values doesn't modify the receiver #to_h converts an empty Hamster::Hash to an empty Ruby Hash converts a non-empty Hamster::Hash to a Hash with the same keys and values doesn't modify the receiver Hamster::Hash #to_proc on Hash without default proc returns a Proc instance returns a Proc that returns the value of an existing key returns a Proc that returns nil for a missing key on Hash with a default proc returns a Proc instance returns a Proc that returns the value of an existing key returns a Proc that returns the result of the hash's default proc for a missing key Hamster::Hash #values_at on Hash without default proc returns an empty vector when no keys are given returns a vector of values for the given keys fills nil when keys are missing on Hash with default proc fills the result of the default proc when keys are missing Hamster::Hash #values returns the keys as a Vector with duplicates returns the keys as a Vector Hamster::Immutable #dup returns self #clone returns self Hamster::Immutable #immutable? object constructed after its class becomes Immutable returns true object constructed before its class becomes Immutable that are not frozen returns false that are frozen returns true Hamster::Immutable #memoize keeps the receiver frozen and immutable when called multiple times doesn't evaluate the memoized method more than once when making a copy clears all memory Hamster::Immutable freezes the instance subclass hides all public methods freezes the instance Hamster::Immutable #transform preserves the original returns a new instance with the updated values Hamster::Immutable #transform_unless when the condition is false preserves the original returns a new instance with the updated values when the condition is true preserves the original returns the original Hamster::List #add on [] with "A" preserves the original returns ["A"] on ["A"] with "B" preserves the original returns ["B", "A"] on ["A"] with "A" preserves the original returns ["A", "A"] on ["A", "B", "C"] with "D" preserves the original returns ["D", "A", "B", "C"] Hamster::List #all? on a really big list doesn't run out of stack when empty with a block returns true with no block returns true when not empty with a block if the block always returns true returns true if the block ever returns false returns false with no block if all values are truthy returns true if any value is nil returns false if any value is false returns false Hamster::List #any? on a really big list doesn't run out of stack when empty with a block returns false with no block returns false when not empty with a block returns true if the block ever returns true ("A") returns true if the block ever returns true ("B") returns true if the block ever returns true ("C") returns true if the block ever returns true (nil) returns false if the block always returns false with no block returns true if any value is truthy returns false if all values are falsey Hamster::List #append is lazy on [] and [] preserves the left preserves the right returns [] on ["A"] and [] preserves the left preserves the right returns ["A"] on [] and ["A"] preserves the left preserves the right returns ["A"] on ["A", "B"] and ["C", "D"] preserves the left preserves the right returns ["A", "B", "C", "D"] #concat is lazy on [] and [] preserves the left preserves the right returns [] on ["A"] and [] preserves the left preserves the right returns ["A"] on [] and ["A"] preserves the left preserves the right returns ["A"] on ["A", "B"] and ["C", "D"] preserves the left preserves the right returns ["A", "B", "C", "D"] #+ is lazy on [] and [] preserves the left preserves the right returns [] on ["A"] and [] preserves the left preserves the right returns ["A"] on [] and ["A"] preserves the left preserves the right returns ["A"] on ["A", "B"] and ["C", "D"] preserves the left preserves the right returns ["A", "B", "C", "D"] Hamster::List #at on a really big list doesn't run out of stack [] with 10 returns nil ["A"] with 10 returns nil ["A", "B", "C"] with 0 returns "A" ["A", "B", "C"] with 2 returns "C" ["A", "B", "C"] with -1 returns "C" ["A", "B", "C"] with -2 returns "B" ["A", "B", "C"] with -4 returns nil Hamster::List #break is lazy on [] with a block preserves the original returns a frozen array with two items correctly identifies the prefix correctly identifies the remainder without a block returns a frozen array with two items returns self as the prefix leaves the remainder empty on [1] with a block preserves the original returns a frozen array with two items correctly identifies the prefix correctly identifies the remainder without a block returns a frozen array with two items returns self as the prefix leaves the remainder empty on [1, 2] with a block preserves the original returns a frozen array with two items correctly identifies the prefix correctly identifies the remainder without a block returns a frozen array with two items returns self as the prefix leaves the remainder empty on [1, 2, 3] with a block preserves the original returns a frozen array with two items correctly identifies the prefix correctly identifies the remainder without a block returns a frozen array with two items returns self as the prefix leaves the remainder empty on [1, 2, 3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the prefix correctly identifies the remainder without a block returns a frozen array with two items returns self as the prefix leaves the remainder empty on [2, 3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the prefix correctly identifies the remainder without a block returns a frozen array with two items returns self as the prefix leaves the remainder empty on [3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the prefix correctly identifies the remainder without a block returns a frozen array with two items returns self as the prefix leaves the remainder empty on [4] with a block preserves the original returns a frozen array with two items correctly identifies the prefix correctly identifies the remainder without a block returns a frozen array with two items returns self as the prefix leaves the remainder empty Hamster::List #car is responded to on [] preserves the original returns nil #car is responded to on ["A"] preserves the original returns "A" #car is responded to on ["A", "B", "C"] preserves the original returns "A" #cadr is responded to on ["A", "B", "C"] preserves the original returns "B" #caddr is responded to on ["A", "B", "C"] preserves the original returns "C" #cadddr is responded to on ["A", "B", "C"] preserves the original returns nil #caddddr is responded to on ["A", "B", "C"] preserves the original returns nil #cdr is responded to on [] preserves the original returns Hamster::List[] #cdr is responded to on ["A"] preserves the original returns Hamster::List[] #cdr is responded to on ["A", "B", "C"] preserves the original returns Hamster::List["B", "C"] #cddr is responded to on ["A", "B", "C"] preserves the original returns Hamster::List["C"] #cdddr is responded to on ["A", "B", "C"] preserves the original returns Hamster::List[] #cddddr is responded to on ["A", "B", "C"] preserves the original returns Hamster::List[] Hamster::List #chunk is lazy on [] preserves the original returns [] on ["A"] preserves the original returns [Hamster::List["A"]] on ["A", "B", "C"] preserves the original returns [Hamster::List["A", "B"], Hamster::List["C"]] Hamster::List #clear on [] preserves the original returns an empty list on ["A"] preserves the original returns an empty list on ["A", "B", "C"] preserves the original returns an empty list Hamster::List #combination is lazy on ["A", "B", "C", "D"] in groups of 1 preserves the original returns [Hamster::List["A"], Hamster::List["B"], Hamster::List["C"], Hamster::List["D"]] on ["A", "B", "C", "D"] in groups of 2 preserves the original returns [Hamster::List["A", "B"], Hamster::List["A", "C"], Hamster::List["A", "D"], Hamster::List["B", "C"], Hamster::List["B", "D"], Hamster::List["C", "D"]] on ["A", "B", "C", "D"] in groups of 3 preserves the original returns [Hamster::List["A", "B", "C"], Hamster::List["A", "B", "D"], Hamster::List["A", "C", "D"], Hamster::List["B", "C", "D"]] on ["A", "B", "C", "D"] in groups of 4 preserves the original returns [Hamster::List["A", "B", "C", "D"]] on ["A", "B", "C", "D"] in groups of 0 preserves the original returns [Hamster::List[]] on ["A", "B", "C", "D"] in groups of 5 preserves the original returns [] on [] in groups of 0 preserves the original returns [Hamster::List[]] on [] in groups of 1 preserves the original returns [] Hamster::List #compact is lazy on [] preserves the original returns [] on ["A"] preserves the original returns ["A"] on ["A", "B", "C"] preserves the original returns ["A", "B", "C"] on [nil] preserves the original returns [] on [nil, "B"] preserves the original returns ["B"] on ["A", nil] preserves the original returns ["A"] on [nil, nil] preserves the original returns [] on ["A", nil, "C"] preserves the original returns ["A", "C"] on [nil, "B", nil] preserves the original returns ["B"] Hamster::List #<=> with [] and [1] returns -1 with [1] and [] returns 1 with [] and [] returns 0 with [1] and [2] returns -1 with [2] and [1] returns 1 with [1] and [1] returns 0 with [1] and [1, 2] returns -1 with [1, 2] and [1] returns 1 with [1] and [1] returns 0 with [2, 3, 4] and [3, 4, 5] returns -1 with [3, 4, 5] and [2, 3, 4] returns 1 with [2, 3, 4] and [2, 3, 4] returns 0 Hamster::List #cons on [] with "A" preserves the original returns ["A"] on ["A"] with "B" preserves the original returns ["B", "A"] on ["A"] with "A" preserves the original returns ["A", "A"] on ["A", "B", "C"] with "D" preserves the original returns ["D", "A", "B", "C"] Hamster .list with no arguments always returns the same instance returns an empty list with a number of items always returns a different instance is the same as repeatedly using #cons .stream with no block returns an empty list with a block repeatedly calls the block .interval for numbers is equivalent to a list with explicit values for strings is equivalent to a list with explicit values .repeat returns an infinite list with specified value for each element .replicate returns a list with the specified value repeated the specified number of times .iterate returns an infinite list where the first item is calculated by applying the block on the initial argument, the second item by applying the function on the previous result and so on .enumerate returns a list based on the values yielded from the enumerator WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/spec/lib/hamster/list/construction_spec.rb:94:in `block (3 levels) in '. realizes values as they are needed [] takes a variable number of items and returns a list returns an empty list when called without arguments Hamster::List on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self Hamster::List #count on a really big list doesn't run out of stack on [] with a block returns 0 without a block returns length on [1] with a block returns 1 without a block returns length on [1, 2] with a block returns 1 without a block returns length on [1, 2, 3] with a block returns 2 without a block returns length on [1, 2, 3, 4] with a block returns 2 without a block returns length on [1, 2, 3, 4, 5] with a block returns 3 without a block returns length Hamster #cycle is lazy with an empty list returns an empty list with a non-empty list preserves the original infinitely cycles through all values Hamster::List #delete_at removes the element at the specified index makes no modification if the index is out of range Hamster::List #delete removes elements that are #== to the argument Hamster::List #drop is lazy with 10 from [] preserves the original returns [] with 10 from ["A"] preserves the original returns [] with -1 from ["A"] preserves the original returns ["A"] with 0 from ["A", "B", "C"] preserves the original returns ["A", "B", "C"] with 2 from ["A", "B", "C"] preserves the original returns ["C"] Hamster::List #drop_while is lazy on [] with a block preserves the original returns [] without a block returns an Enumerator on ["A"] with a block preserves the original returns [] without a block returns an Enumerator on ["A", "B", "C"] with a block preserves the original returns ["C"] without a block returns an Enumerator Hamster::List #each_chunk on a really big list doesn't run out of stack on [] with a block preserves the original iterates over the items in order returns self without a block preserves the original returns an Enumerator on ["A"] with a block preserves the original iterates over the items in order returns self without a block preserves the original returns an Enumerator on ["A", "B", "C"] with a block preserves the original iterates over the items in order returns self without a block preserves the original returns an Enumerator #each_slice on a really big list doesn't run out of stack on [] with a block preserves the original iterates over the items in order returns self without a block preserves the original returns an Enumerator on ["A"] with a block preserves the original iterates over the items in order returns self without a block preserves the original returns an Enumerator on ["A", "B", "C"] with a block preserves the original iterates over the items in order returns self without a block preserves the original returns an Enumerator Hamster::List #each on a really big list doesn't run out of stack on [] with a block iterates over the items in order returns nil without a block returns an Enumerator on ["A"] with a block iterates over the items in order returns nil without a block returns an Enumerator on ["A", "B", "C"] with a block iterates over the items in order returns nil without a block returns an Enumerator Hamster::List #each_with_index with no block returns an Enumerator with a block returns self iterates over the items in order, yielding item and index Hamster::List #empty? on a really big list doesn't run out of stack on [] returns true on ["A"] returns false on ["A", "B", "C"] returns false Hamster::List Hamster::List["A", "B", "C"] should == ["A", "B", "C"] Hamster::List["A", "B", "C"] should not eql? ["A", "B", "C"] Hamster::List["A", "B", "C"] should not == # Hamster::List["A", "B", "C"] should not eql? # Hamster::List[] should == [] Hamster::List[] should not eql? [] Hamster::List[] should eql? Hamster::List[] Hamster::List[] should == Hamster::List[] Hamster::List[] should not eql? Hamster::List[nil] Hamster::List["A"] should not eql? Hamster::List[] Hamster::List["A"] should eql? Hamster::List["A"] Hamster::List["A"] should == Hamster::List["A"] Hamster::List["A"] should not eql? Hamster::List["B"] Hamster::List["A", "B"] should not eql? Hamster::List["A"] Hamster::List["A", "B", "C"] should eql? Hamster::List["A", "B", "C"] Hamster::List["A", "B", "C"] should == Hamster::List["A", "B", "C"] Hamster::List["C", "A", "B"] should not eql? Hamster::List["A", "B", "C"] Hamster::List["A"] should == ["A"] ["A"] should == Hamster::List["A"] Hamster::List["A"] should not eql? ["A"] ["A"] should not eql? Hamster::List["A"] #eql? on a really big list doesn't run out of stack Hamster::List #fill can replace a range of items at the beginning of a list can replace a range of items in the middle of a list can replace a range of items at the end of a list can replace all the items in a list can fill past the end of the list is lazy with 1 argument replaces all the items in the list by default with 2 arguments replaces up to the end of the list by default when index and length are 0 leaves the list unmodified Hamster::List #find_all is lazy with an empty array with a block preserves the original returns the found list without a block returns an Enumerator with a single item array with a block preserves the original returns the found list without a block returns an Enumerator with a multi-item array with a block preserves the original returns the found list without a block returns an Enumerator with a multi-item single find_allable array with a block preserves the original returns the found list without a block returns an Enumerator with a multi-item multi-find_allable array with a block preserves the original returns the found list without a block returns an Enumerator Hamster::List #find_index on a really big list doesn't run out of stack looking for "A" in [] returns nil looking for nil in [] returns nil looking for "A" in ["A"] returns 0 looking for "B" in ["A"] returns nil looking for nil in ["A"] returns nil looking for "A" in ["A", "B", nil] returns 0 looking for "B" in ["A", "B", nil] returns 1 looking for nil in ["A", "B", nil] returns 2 looking for "C" in ["A", "B", nil] returns nil looking for 2 in [2] returns 0 looking for 2.0 in [2] returns 0 looking for 2.0 in [2.0] returns 0 looking for 2 in [2.0] returns 0 #index on a really big list doesn't run out of stack looking for "A" in [] returns nil looking for nil in [] returns nil looking for "A" in ["A"] returns 0 looking for "B" in ["A"] returns nil looking for nil in ["A"] returns nil looking for "A" in ["A", "B", nil] returns 0 looking for "B" in ["A", "B", nil] returns 1 looking for nil in ["A", "B", nil] returns 2 looking for "C" in ["A", "B", nil] returns nil looking for 2 in [2] returns 0 looking for 2.0 in [2] returns 0 looking for 2.0 in [2.0] returns 0 looking for 2 in [2.0] returns 0 Hamster::List #find on a really big list doesn't run out of stack on [] with a block returns nil without a block returns an Enumerator on [] with a block returns nil without a block returns an Enumerator on ["A"] with a block returns "A" without a block returns an Enumerator on ["A"] with a block returns nil without a block returns an Enumerator on ["A"] with a block returns nil without a block returns an Enumerator on ["A", "B", nil] with a block returns "A" without a block returns an Enumerator on ["A", "B", nil] with a block returns "B" without a block returns an Enumerator on ["A", "B", nil] with a block returns nil without a block returns an Enumerator on ["A", "B", nil] with a block returns nil without a block returns an Enumerator #detect on a really big list doesn't run out of stack on [] with a block returns nil without a block returns an Enumerator on [] with a block returns nil without a block returns an Enumerator on ["A"] with a block returns "A" without a block returns an Enumerator on ["A"] with a block returns nil without a block returns an Enumerator on ["A"] with a block returns nil without a block returns an Enumerator on ["A", "B", nil] with a block returns "A" without a block returns an Enumerator on ["A", "B", nil] with a block returns "B" without a block returns an Enumerator on ["A", "B", nil] with a block returns nil without a block returns an Enumerator on ["A", "B", nil] with a block returns nil without a block returns an Enumerator Hamster::List #flat_map with an empty list returns the flattened values as a Hamster::List returns a Hamster::List with a block that returns an empty list returns the flattened values as a Hamster::List returns a Hamster::List with a list of one item returns the flattened values as a Hamster::List returns a Hamster::List with a list of multiple items returns the flattened values as a Hamster::List returns a Hamster::List Hamster #flatten is lazy on [] preserves the original returns an empty list on ["A"] preserves the original returns an empty list on ["A", "B", "C"] preserves the original returns an empty list on ["A", Hamster::List["B"], "C"] preserves the original returns an empty list on [Hamster::List["A"], Hamster::List["B"], Hamster::List["C"]] preserves the original returns an empty list Hamster::List #grep is lazy without a block on [] returns [] on ["A"] returns ["A"] on [1] returns [] on ["A", 2, "C"] returns ["A", "C"] with a block on [] preserves the original returns [] on ["A"] preserves the original returns ["a"] on [1] preserves the original returns [] on ["A", 2, "C"] preserves the original returns ["a", "c"] Hamster::List #group_by on a really big list doesn't run out of stack with a block on [] returns [] on [1] returns [{true=>Hamster::List[1]}] on [1, 2, 3, 4] returns [{true=>Hamster::List[3, 1], false=>Hamster::List[4, 2]}] without a block on [] returns [] on [1] returns [{1=>Hamster::List[1]}] on [1, 2, 3, 4] returns [{1=>Hamster::List[1], 2=>Hamster::List[2], 3=>Hamster::List[3], 4=>Hamster::List[4]}] #group on a really big list doesn't run out of stack with a block on [] returns [] on [1] returns [{true=>Hamster::List[1]}] on [1, 2, 3, 4] returns [{true=>Hamster::List[3, 1], false=>Hamster::List[4, 2]}] without a block on [] returns [] on [1] returns [{1=>Hamster::List[1]}] on [1, 2, 3, 4] returns [{1=>Hamster::List[1], 2=>Hamster::List[2], 3=>Hamster::List[3], 4=>Hamster::List[4]}] Hamster::List #hash values are sufficiently distributed on a really big list doesn't run out of stack on an empty list returns 0 Hamster::List #head on [] returns nil on ["A"] returns "A" on ["A", "B", "C"] returns "A" #first on [] returns nil on ["A"] returns "A" on ["A", "B", "C"] returns "A" Hamster::List #include? on a really big list doesn't run out of stack on [] returns false on [] returns false on ["A"] returns true on ["A"] returns false on ["A"] returns false on ["A", "B", nil] returns true on ["A", "B", nil] returns true on ["A", "B", nil] returns true on ["A", "B", nil] returns false on [2] returns true on [2] returns true on [2.0] returns true on [2.0] returns true #member? on a really big list doesn't run out of stack on [] returns false on [] returns false on ["A"] returns true on ["A"] returns false on ["A"] returns false on ["A", "B", nil] returns true on ["A", "B", nil] returns true on ["A", "B", nil] returns true on ["A", "B", nil] returns false on [2] returns true on [2] returns true on [2.0] returns true on [2.0] returns true Hamster::List #index on a really big list doesn't run out of stack looking for "A" in [] returns nil looking for nil in [] returns nil looking for "A" in ["A"] returns 0 looking for "B" in ["A"] returns nil looking for nil in ["A"] returns nil looking for "A" in ["A", "B", nil] returns 0 looking for "B" in ["A", "B", nil] returns 1 looking for nil in ["A", "B", nil] returns 2 looking for "C" in ["A", "B", nil] returns nil looking for 2 in [2] returns 0 looking for 2.0 in [2] returns 0 looking for 2.0 in [2.0] returns 0 looking for 2 in [2.0] returns 0 Hamster::List #indices when called with a block is lazy on a large list which doesn't contain desired item doesn't blow the stack looking for "A" in [] returns [] looking for "B" in ["A"] returns [] looking for "B" in ["A", "B", "A"] returns [1] looking for "A" in ["A", "B", "A"] returns [0, 2] looking for 2 in [2] returns [0] looking for 2.0 in [2] returns [0] looking for 2.0 in [2.0] returns [0] looking for 2 in [2.0] returns [0] when called with a single argument is lazy looking for "A" in [] returns [] looking for "B" in ["A"] returns [] looking for "B" in ["A", "B", "A"] returns [1] looking for "A" in ["A", "B", "A"] returns [0, 2] looking for 2 in [2] returns [0] looking for 2.0 in [2] returns [0] looking for 2.0 in [2.0] returns [0] looking for 2 in [2.0] returns [0] Hamster::List #init is lazy on [] preserves the original returns the list without the last element: [] on ["A"] preserves the original returns the list without the last element: [] on ["A", "B", "C"] preserves the original returns the list without the last element: ["A", "B"] Hamster::List #inits is lazy on [] preserves the original returns [] on ["A"] preserves the original returns [Hamster::List["A"]] on ["A", "B", "C"] preserves the original returns [Hamster::List["A"], Hamster::List["A", "B"], Hamster::List["A", "B", "C"]] Hamster::List #insert can add items at the beginning of a list can add items in the middle of a list can add items at the end of a list can add items past the end of a list accepts a negative index, which counts back from the end of the list raises IndexError if a negative index is too great is lazy Hamster::List #inspect on a really big list doesn't run out of stack on [] returns "Hamster::List[]" returns a string which can be eval'd to get an equivalent object on ["A"] returns "Hamster::List[\"A\"]" returns a string which can be eval'd to get an equivalent object on ["A", "B", "C"] returns "Hamster::List[\"A\", \"B\", \"C\"]" returns a string which can be eval'd to get an equivalent object Hamster::List #intersperse is lazy on [] preserves the original returns [] on ["A"] preserves the original returns ["A"] on ["A", "B", "C"] preserves the original returns ["A", "|", "B", "|", "C"] Hamster::List #join on a really big list doesn't run out of stack with a separator on [] preserves the original returns "" on ["A"] preserves the original returns "A" on ["A", "B", "C"] preserves the original returns "A|B|C" without a separator on [] preserves the original returns "" on ["A"] preserves the original returns "A" on ["A", "B", "C"] preserves the original returns "ABC" without a separator (with global default separator set) uses the default global separator Hamster::List #last on a really big list doesn't run out of stack on [] returns nil on ["A"] returns "A" on ["A", "B", "C"] returns "C" Hamster::List #<< adds an item onto the end of a list on an empty list returns a list with one item Hamster::List #map is lazy on [] with a block preserves the original returns [] is lazy without a block returns an Enumerator on ["A"] with a block preserves the original returns ["a"] is lazy without a block returns an Enumerator on ["A", "B", "C"] with a block preserves the original returns ["a", "b", "c"] is lazy without a block returns an Enumerator #collect is lazy on [] with a block preserves the original returns [] is lazy without a block returns an Enumerator on ["A"] with a block preserves the original returns ["a"] is lazy without a block returns an Enumerator on ["A", "B", "C"] with a block preserves the original returns ["a", "b", "c"] is lazy without a block returns an Enumerator Hamster::List #max on a really big list doesn't run out of stack with a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ichi" without a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "San" Hamster::List without a comparator on an empty list returns an empty list on a single list returns the list with multiple lists merges the lists based on natural sort order with a comparator on an empty list returns an empty list on a single list returns the list with multiple lists merges the lists based on the specified transformer Hamster::List without a comparator on an empty list returns an empty list on a single list returns the list with multiple lists merges the lists based on natural sort order with a comparator on an empty list returns an empty list on a single list returns the list with multiple lists merges the lists based on the specified comparator Hamster::List #min on a really big list doesn't run out of stack with a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ni" without a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ichi" Hamster::List ensures each node of a lazy list will only be realized on ONE thread, even when accessed by multiple threads doesn't go into an infinite loop if lazy list block raises an exception doesn't give horrendously bad performance if thread realizing the list sleeps (PENDING: Temporarily skipped with xit) Hamster::List #none? on a really big list doesn't run out of stack when empty with a block returns true with no block returns true when not empty with a block returns false if the block ever returns true ("A") returns false if the block ever returns true ("B") returns false if the block ever returns true ("C") returns false if the block ever returns true (nil) returns true if the block always returns false with no block returns false if any value is truthy returns true if all values are falsey Hamster::List #one? on a really big list doesn't run out of stack when empty with a block returns false with no block returns false when not empty with a block returns false if the block returns true more than once returns false if the block never returns true returns true if the block only returns true once with no block returns false if more than one value is truthy returns true if only one value is truthy Hamster::List #partition is lazy calls the passed block only once for each item returns a lazy list of items for which predicate is true returns a lazy list of items for which predicate is false calls the passed block only once for each item, even with multiple threads on [] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2, 3] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2, 3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [2, 3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator Hamster::List #permutation with no block returns an Enumerator with no argument yields all permutations of the list with a length argument yields all N-size permutations of the list with a length argument greater than length of list yields nothing with a length argument of 0 yields an empty list with a block returns the original list Hamster::List #pop with an empty list returns an empty list with a list with a few items removes the last item Hamster::List #product on a really big list doesn't run out of stack on [] returns 1 on [2] returns 2 on [1, 3, 5, 7, 11] returns 1155 Hamster::List #reduce on a really big list doesn't run out of stack on [] with an initial value of 10 and a block returns 10 on [1] with an initial value of 10 and a block returns 9 on [1, 2, 3] with an initial value of 10 and a block returns 4 on [] with no initial value and a block returns nil on [1] with no initial value and a block returns 1 on [1, 2, 3] with no initial value and a block returns -4 with no block and a symbol argument uses the symbol as the name of a method to reduce with with no block and a string argument uses the string as the name of a method to reduce with #inject on a really big list doesn't run out of stack on [] with an initial value of 10 and a block returns 10 on [1] with an initial value of 10 and a block returns 9 on [1, 2, 3] with an initial value of 10 and a block returns 4 on [] with no initial value and a block returns nil on [1] with no initial value and a block returns 1 on [1, 2, 3] with no initial value and a block returns -4 with no block and a symbol argument uses the symbol as the name of a method to reduce with with no block and a string argument uses the string as the name of a method to reduce with Hamster::List #reject is lazy on [] with a block returns [] is lazy without a block returns an Enumerator on ["A"] with a block returns ["A"] is lazy without a block returns an Enumerator on ["A", "B", "C"] with a block returns ["A", "B", "C"] is lazy without a block returns an Enumerator on ["A", "b", "C"] with a block returns ["A", "C"] is lazy without a block returns an Enumerator on ["a", "b", "c"] with a block returns [] is lazy without a block returns an Enumerator #delete_if is lazy on [] with a block returns [] is lazy without a block returns an Enumerator on ["A"] with a block returns ["A"] is lazy without a block returns an Enumerator on ["A", "B", "C"] with a block returns ["A", "B", "C"] is lazy without a block returns an Enumerator on ["A", "b", "C"] with a block returns ["A", "C"] is lazy without a block returns an Enumerator on ["a", "b", "c"] with a block returns [] is lazy without a block returns an Enumerator Hamster::List #reverse is lazy on a really big list doesn't run out of stack on [] preserves the original returns [] on ["A"] preserves the original returns ["A"] on ["A", "B", "C"] preserves the original returns ["C", "B", "A"] Hamster::List #rotate when passed no argument returns a new list with the first element moved to the end with an integral argument n returns a new list with the first (n % size) elements moved to the end with a non-numeric argument raises a TypeError with an argument of zero (or one evenly divisible by list length) it returns self Hamster::List #sample returns a randomly chosen item Hamster::List #select is lazy with an empty array with a block preserves the original returns the selected list without a block returns an Enumerator with a single item array with a block preserves the original returns the selected list without a block returns an Enumerator with a multi-item array with a block preserves the original returns the selected list without a block returns an Enumerator with a multi-item single selectable array with a block preserves the original returns the selected list without a block returns an Enumerator with a multi-item multi-selectable array with a block preserves the original returns the selected list without a block returns an Enumerator Hamster::List #size on a really big list doesn't run out of stack on [] returns 0 on ["A"] returns 1 on ["A", "B", "C"] returns 3 #length on a really big list doesn't run out of stack on [] returns 0 on ["A"] returns 1 on ["A", "B", "C"] returns 3 Hamster::List #slice when passed a positive integral index returns the element at that index leaves the original unchanged when passed a negative integral index returns the element which is number (index.abs) counting from the end of the list when passed a positive integral index and count returns 'count' elements starting from 'index' leaves the original unchanged when passed a negative integral index and count returns 'count' elements, starting from index which is number 'index.abs' counting from the end of the array when passed a Range returns the elements whose indexes are within the given Range leaves the original unchanged when passed a subclass of Range works the same as with a Range #[] when passed a positive integral index returns the element at that index leaves the original unchanged when passed a negative integral index returns the element which is number (index.abs) counting from the end of the list when passed a positive integral index and count returns 'count' elements starting from 'index' leaves the original unchanged when passed a negative integral index and count returns 'count' elements, starting from index which is number 'index.abs' counting from the end of the array when passed a Range returns the elements whose indexes are within the given Range leaves the original unchanged when passed a subclass of Range works the same as with a Range Hamster::List #sort is lazy on [] with a block preserves the original returns [] without a block preserves the original returns [] on ["A"] with a block preserves the original returns ["A"] without a block preserves the original returns ["A"] on ["Ichi", "Ni", "San"] with a block preserves the original returns ["Ni", "San", "Ichi"] without a block preserves the original returns ["Ichi", "Ni", "San"] #sort_by is lazy on [] with a block preserves the original returns [] without a block preserves the original returns [] on ["A"] with a block preserves the original returns ["A"] without a block preserves the original returns ["A"] on ["Ichi", "Ni", "San"] with a block preserves the original returns ["Ni", "San", "Ichi"] without a block preserves the original returns ["Ichi", "Ni", "San"] Hamster::list#span is lazy given a predicate (in the form of a block), splits the list into two lists (returned as an array) such that elements in the first list (the prefix) are taken from the head of the list while the predicate is satisfied, and elements in the second list (the remainder) are the remaining elements from the list once the predicate is not satisfied. For example: given the list [] and a predicate that returns true for values <= 2 preserves the original returns the prefix as [] returns the remainder as [] calls the block only once for each element without a predicate returns a frozen array returns self as the prefix returns an empty list as the remainder given the list [1] and a predicate that returns true for values <= 2 preserves the original returns the prefix as [1] returns the remainder as [] calls the block only once for each element without a predicate returns a frozen array returns self as the prefix returns an empty list as the remainder given the list [1, 2] and a predicate that returns true for values <= 2 preserves the original returns the prefix as [1, 2] returns the remainder as [] calls the block only once for each element without a predicate returns a frozen array returns self as the prefix returns an empty list as the remainder given the list [1, 2, 3] and a predicate that returns true for values <= 2 preserves the original returns the prefix as [1, 2] returns the remainder as [3] calls the block only once for each element without a predicate returns a frozen array returns self as the prefix returns an empty list as the remainder given the list [1, 2, 3, 4] and a predicate that returns true for values <= 2 preserves the original returns the prefix as [1, 2] returns the remainder as [3, 4] calls the block only once for each element without a predicate returns a frozen array returns self as the prefix returns an empty list as the remainder given the list [2, 3, 4] and a predicate that returns true for values <= 2 preserves the original returns the prefix as [2] returns the remainder as [3, 4] calls the block only once for each element without a predicate returns a frozen array returns self as the prefix returns an empty list as the remainder given the list [3, 4] and a predicate that returns true for values <= 2 preserves the original returns the prefix as [] returns the remainder as [3, 4] calls the block only once for each element without a predicate returns a frozen array returns self as the prefix returns an empty list as the remainder given the list [4] and a predicate that returns true for values <= 2 preserves the original returns the prefix as [] returns the remainder as [4] calls the block only once for each element without a predicate returns a frozen array returns self as the prefix returns an empty list as the remainder Hamster::List #split_at is lazy on [] preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder on [1] preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder on [1, 2] preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder on [1, 2, 3] preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder on [1, 2, 3, 4] preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder Hamster::List #subsequences yields all sublists with 1 or more consecutive items with no block returns an Enumerator Hamster::List #sum on a really big list doesn't run out of stack on [] returns 0 on [2] returns 2 on [1, 3, 5, 7, 11] returns 27 Hamster::List #tail on a really big list doesn't run out of stack on [] preserves the original returns [] on ["A"] preserves the original returns [] on ["A", "B", "C"] preserves the original returns ["B", "C"] Hamster::List #tails is lazy on [] preserves the original returns [] on ["A"] preserves the original returns [Hamster::List["A"]] on ["A", "B", "C"] preserves the original returns [Hamster::List["A", "B", "C"], Hamster::List["B", "C"], Hamster::List["C"]] Hamster::List #take is lazy 10 from [] preserves the original returns [] 10 from ["A"] preserves the original returns ["A"] -1 from ["A"] preserves the original returns [] 0 from ["A", "B", "C"] preserves the original returns [] 2 from ["A", "B", "C"] preserves the original returns ["A", "B"] Hamster::List #take_while is lazy on [] with a block returns [] preserves the original is lazy without a block returns an Enumerator on ["A"] with a block returns ["A"] preserves the original is lazy without a block returns an Enumerator on ["A", "B", "C"] with a block returns ["A", "B"] preserves the original is lazy without a block returns an Enumerator Hamster::List #to_a on a really big list doesn't run out of stack on [] returns [] leaves the original unchanged returns a mutable array on ["A"] returns ["A"] leaves the original unchanged returns a mutable array on ["A", "B", "C"] returns ["A", "B", "C"] leaves the original unchanged returns a mutable array #entries on a really big list doesn't run out of stack on [] returns [] leaves the original unchanged returns a mutable array on ["A"] returns ["A"] leaves the original unchanged returns a mutable array on ["A", "B", "C"] returns ["A", "B", "C"] leaves the original unchanged returns a mutable array Hamster::List #to_ary on a really big list doesn't run out of stack enables implicit conversion to block parameters method arguments works with splat Hamster::List #to_list on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self Hamster::List #to_set on [] returns a set with the same values on ["A"] returns a set with the same values on ["A", "B", "C"] returns a set with the same values Hamster::List #transpose takes a list of lists and returns a list of all the first elements, all the 2nd elements, and so on only goes as far as the shortest list Hamster::List #union is lazy returns [] for [] and [] for [] and [] returns ["A"] for ["A"] and [] for [] and ["A"] returns ["A", "B", "C"] for ["A", "B", "C"] and [] for [] and ["A", "B", "C"] returns ["A"] for ["A", "A"] and ["A"] for ["A"] and ["A", "A"] #| is lazy returns [] for [] and [] for [] and [] returns ["A"] for ["A"] and [] for [] and ["A"] returns ["A", "B", "C"] for ["A", "B", "C"] and [] for [] and ["A", "B", "C"] returns ["A"] for ["A", "A"] and ["A"] for ["A"] and ["A", "A"] Hamster::List #uniq is lazy when passed a block uses the block to identify duplicates on [] preserves the original returns [] on ["A"] preserves the original returns ["A"] on ["A", "B", "C"] preserves the original returns ["A", "B", "C"] on ["A", "B", "A", "C", "C"] preserves the original returns ["A", "B", "C"] Hamster::List #zip is lazy on [] and [] returns [] on ["A"] and ["aye"] returns [Hamster::List["A", "aye"]] on ["A"] and [] returns [Hamster::List["A", nil]] on [] and ["A"] returns [Hamster::List[nil, "A"]] on ["A", "B", "C"] and ["aye", "bee", "see"] returns [Hamster::List["A", "aye"], Hamster::List["B", "bee"], Hamster::List["C", "see"]] Hamster .from with {"a"=>1, "b"=>[2, {"c"=>3}, 4], "d"=>#, "e"=>{"f"=>8, "g"=>9}, "h"=>/ijk/, "l"=>#} as input should return Hamster::Hash["h" => /ijk/, "d" => Hamster::Set[5, 6, 7], "l" => Hamster::SortedSet[1, 2, 3], "a" => 1, "e" => Hamster::Hash["g" => 9, "f" => 8], "b" => Hamster::Vector[2, Hamster::Hash["c" => 3], 4]] with {} as input should return Hamster::Hash[] with {"a"=>1, "b"=>2, "c"=>3} as input should return Hamster::Hash["a" => 1, "b" => 2, "c" => 3] with [] as input should return Hamster::Vector[] with [1, 2, 3] as input should return Hamster::Vector[1, 2, 3] with # as input should return Hamster::Set[] with # as input should return Hamster::Set[2, 1, 3] with # as input should return Hamster::SortedSet[] with # as input should return Hamster::SortedSet[1, 2, 3] with 42 as input should return 42 with #> as input should return #> with # as input should return Hamster::Hash[:name => nil, :address => nil] with # as input should return Hamster::Hash[:name => "Dave", :address => "123 Main"] with mixed object should return Hamster data .to_ruby with Hamster::Hash["h" => /ijk/, "d" => Hamster::Set[5, 6, 7], "l" => Hamster::SortedSet[1, 2, 3], "a" => 1, "e" => Hamster::Hash["g" => 9, "f" => 8], "b" => Hamster::Vector[2, Hamster::Hash["c" => 3], 4]] as input should return {"a"=>1, "b"=>[2, {"c"=>3}, 4], "d"=>#, "e"=>{"f"=>8, "g"=>9}, "h"=>/ijk/, "l"=>#} with Hamster::Hash[] as input should return {} with Hamster::Hash["a" => 1, "b" => 2, "c" => 3] as input should return {"a"=>1, "b"=>2, "c"=>3} with Hamster::Vector[] as input should return [] with Hamster::Vector[1, 2, 3] as input should return [1, 2, 3] with Hamster::Set[] as input should return # with Hamster::Set[2, 1, 3] as input should return # with Hamster::SortedSet[] as input should return # with Hamster::SortedSet[1, 2, 3] as input should return # with 42 as input should return 42 with #> as input should return #> with Hamster::Deque[] as input should return [] with Hamster::Deque[Hamster::Hash["a" => 1]] as input should return [{"a" => 1}] with mixed object should return Ruby data structures Hamster::Set #add can add nil to a set works on large sets, with many combinations of input with a unique value preserves the original returns a copy with the superset of values with a duplicate value preserves the original values returns self #<< can add nil to a set works on large sets, with many combinations of input with a unique value preserves the original returns a copy with the superset of values with a duplicate value preserves the original values returns self #add? with a unique value preserves the original returns a copy with the superset of values with a duplicate value preserves the original values returns false Hamster::Set #all? when empty with a block returns true with no block returns true when not empty with a block returns true if the block always returns true returns false if the block ever returns false propagates an exception from the block stops iterating as soon as the block returns false with no block returns true if all values are truthy returns false if any value is nil returns false if any value is false Hamster::Set #any? when empty with a block returns false with no block returns false when not empty with a block returns true if the block ever returns true ("A") returns true if the block ever returns true ("B") returns true if the block ever returns true ("C") returns true if the block ever returns true (nil) returns false if the block always returns false propagates exceptions raised in the block stops iterating as soon as the block returns true with no block returns true if any value is truthy returns false if all values are falsey Hamster::Set #clear on [] preserves the original returns an empty set on ["A"] preserves the original returns an empty set on ["A", "B", "C"] preserves the original returns an empty set from a subclass returns an empty instance of the subclass Hamster::Set #compact on [] preserves the original returns [] on ["A"] preserves the original returns ["A"] on ["A", "B", "C"] preserves the original returns ["A", "B", "C"] on [nil] preserves the original returns [] on [nil, "B"] preserves the original returns ["B"] on ["A", nil] preserves the original returns ["A"] on [nil, nil] preserves the original returns [] on ["A", nil, "C"] preserves the original returns ["A", "C"] on [nil, "B", nil] preserves the original returns ["B"] Hamster::Set .set with no values returns the empty set with a list of values is equivalent to repeatedly using #add Hamster::Set #dup returns self #clone returns self Hamster::Set #count works on large sets on [] with a block returns 0 without a block returns length on [1] with a block returns 1 without a block returns length on [1, 2] with a block returns 1 without a block returns length on [1, 2, 3] with a block returns 2 without a block returns length on [1, 2, 3, 4] with a block returns 2 without a block returns length on [1, 2, 3, 4, 5] with a block returns 3 without a block returns length Hamster::Set #delete works on large sets, with many combinations of input with an existing value preserves the original returns a copy with the remaining values with a non-existing value preserves the original values returns self when removing the last value in a set returns the canonical empty set #delete? with an existing value preserves the original returns a copy with the remaining values with a non-existing value preserves the original values returns false Hamster::Set #difference works on a wide variety of inputs for [] and [] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A"] and [] doesn't modify the original Sets returns ["A"] when passed a Ruby Array returns the expected Set for ["A"] and ["A"] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B"] doesn't modify the original Sets returns ["A", "C"] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["A", "C"] doesn't modify the original Sets returns ["B"] when passed a Ruby Array returns the expected Set for ["A", "B", "C", "D", "E", "F", "G", "H"] and [] doesn't modify the original Sets returns ["A", "B", "C", "D", "E", "F", "G", "H"] when passed a Ruby Array returns the expected Set for ["A", "B", "C", "M", "X", "Y", "Z"] and ["B", "C", "D", "E", "F", "G", "H", "I", "J", "X"] doesn't modify the original Sets returns ["A", "M", "Y", "Z"] when passed a Ruby Array returns the expected Set #subtract works on a wide variety of inputs for [] and [] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A"] and [] doesn't modify the original Sets returns ["A"] when passed a Ruby Array returns the expected Set for ["A"] and ["A"] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B"] doesn't modify the original Sets returns ["A", "C"] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["A", "C"] doesn't modify the original Sets returns ["B"] when passed a Ruby Array returns the expected Set for ["A", "B", "C", "D", "E", "F", "G", "H"] and [] doesn't modify the original Sets returns ["A", "B", "C", "D", "E", "F", "G", "H"] when passed a Ruby Array returns the expected Set for ["A", "B", "C", "M", "X", "Y", "Z"] and ["B", "C", "D", "E", "F", "G", "H", "I", "J", "X"] doesn't modify the original Sets returns ["A", "M", "Y", "Z"] when passed a Ruby Array returns the expected Set #- works on a wide variety of inputs for [] and [] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A"] and [] doesn't modify the original Sets returns ["A"] when passed a Ruby Array returns the expected Set for ["A"] and ["A"] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B"] doesn't modify the original Sets returns ["A", "C"] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["A", "C"] doesn't modify the original Sets returns ["B"] when passed a Ruby Array returns the expected Set for ["A", "B", "C", "D", "E", "F", "G", "H"] and [] doesn't modify the original Sets returns ["A", "B", "C", "D", "E", "F", "G", "H"] when passed a Ruby Array returns the expected Set for ["A", "B", "C", "M", "X", "Y", "Z"] and ["B", "C", "D", "E", "F", "G", "H", "I", "J", "X"] doesn't modify the original Sets returns ["A", "M", "Y", "Z"] when passed a Ruby Array returns the expected Set Hamster::Set #disjoint? for [] and [] returns true for ["A"] and [] returns true for [] and ["A"] returns true for ["A"] and ["A"] returns false for ["A", "B", "C"] and ["B"] returns false for ["B"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["D", "E"] returns true for ["F", "G", "H", "I"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C", "D"] returns false for ["D", "E", "F", "G"] and ["A", "B", "C"] returns true Hamster::Set #each yields both of a pair of colliding keys without a block returns an Enumerator with an empty block returns self with a block yields all values Hamster::Set #empty? on [] returns true on ["A"] returns false on ["A", "B", "C"] returns false on [nil] returns false on [false] returns false .empty returns the canonical empty set from a subclass returns an empty instance of the subclass calls overridden #initialize when creating empty Set Hamster::Set #== when comparing to a standard set returns false when comparing to a arbitrary object returns false with an empty set for each comparison returns true with an empty set and a set with nil returns false with a single item array and empty array returns false with matching single item array returns true with mismatching single item array returns false with a multi-item array and single item array returns false with matching multi-item array returns true with a mismatching multi-item array returns true Hamster::Set #eql? when comparing to a standard set returns false when comparing to a arbitrary object returns false when comparing with a subclass of Hamster::Set returns false with an empty set for each comparison returns true with an empty set and a set with nil returns false with a single item array and empty array returns false with matching single item array returns true with mismatching single item array returns false with a multi-item array and single item array returns false with matching multi-item array returns true with a mismatching multi-item array returns true Hamster::Set #exclusion works for a wide variety of inputs for [] and [] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A"] and [] doesn't modify the original Sets returns ["A"] when passed a Ruby Array returns the expected Set for ["A"] and ["A"] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B"] doesn't modify the original Sets returns ["A", "C"] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B", "C", "D"] doesn't modify the original Sets returns ["A", "D"] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["D", "E", "F"] doesn't modify the original Sets returns ["A", "B", "C", "D", "E", "F"] when passed a Ruby Array returns the expected Set #^ works for a wide variety of inputs for [] and [] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A"] and [] doesn't modify the original Sets returns ["A"] when passed a Ruby Array returns the expected Set for ["A"] and ["A"] doesn't modify the original Sets returns [] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B"] doesn't modify the original Sets returns ["A", "C"] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B", "C", "D"] doesn't modify the original Sets returns ["A", "D"] when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["D", "E", "F"] doesn't modify the original Sets returns ["A", "B", "C", "D", "E", "F"] when passed a Ruby Array returns the expected Set Hamster::Set #find on [] with a block returns nil without a block returns an Enumerator on [] with a block returns nil without a block returns an Enumerator on ["A"] with a block returns "A" without a block returns an Enumerator on ["A"] with a block returns nil without a block returns an Enumerator on ["A"] with a block returns nil without a block returns an Enumerator on ["A", "B", nil] with a block returns "A" without a block returns an Enumerator on ["A", "B", nil] with a block returns "B" without a block returns an Enumerator on ["A", "B", nil] with a block returns nil without a block returns an Enumerator on ["A", "B", nil] with a block returns nil without a block returns an Enumerator #detect on [] with a block returns nil without a block returns an Enumerator on [] with a block returns nil without a block returns an Enumerator on ["A"] with a block returns "A" without a block returns an Enumerator on ["A"] with a block returns nil without a block returns an Enumerator on ["A"] with a block returns nil without a block returns an Enumerator on ["A", "B", nil] with a block returns "A" without a block returns an Enumerator on ["A", "B", nil] with a block returns "B" without a block returns an Enumerator on ["A", "B", nil] with a block returns nil without a block returns an Enumerator on ["A", "B", nil] with a block returns nil without a block returns an Enumerator Hamster::Set #first returns nil if only member of set is nil returns the first item yielded by #each on an empty set returns nil on a non-empty set returns an arbitrary value from the set Hamster #flatten on ["A"] preserves the original returns the inlined values on ["A", "B", "C"] preserves the original returns the inlined values on ["A", Hamster::Set["B"], "C"] preserves the original returns the inlined values on [Hamster::Set["A"], Hamster::Set["B"], Hamster::Set["C"]] preserves the original returns the inlined values on an empty set returns an empty set on a set with multiple levels of nesting inlines lower levels of nesting from a subclass returns an instance of the subclass Hamster::Set #grep without a block with an empty set returns the filtered values with a single item set returns the filtered values with a single item set that doesn't contain match returns the filtered values with a multi-item set where one isn't a match returns the filtered values with a block processes each matching item with the block returns the filtered values Hamster::Set #grep_v without a block with an empty set returns the filtered values with a single item set returns the filtered values with a single item set that doesn't contain match returns the filtered values with a multi-item set where one isn't a match returns the filtered values with a block resulting items are processed with the block returns the filtered values Hamster::Set #group_by returns a hash without default proc with a block on [] returns [] on [1] returns [{true=>Hamster::Set[1]}] on [1, 2, 3, 4] returns [{true=>Hamster::Set[3, 1], false=>Hamster::Set[2, 4]}] without a block on [] returns [] on [1] returns [{1=>Hamster::Set[1]}] on [1, 2, 3, 4] returns [{1=>Hamster::Set[1], 2=>Hamster::Set[2], 3=>Hamster::Set[3], 4=>Hamster::Set[4]}] on an empty set returns an empty hash from a subclass returns an Hash whose values are instances of the subclass #group returns a hash without default proc with a block on [] returns [] on [1] returns [{true=>Hamster::Set[1]}] on [1, 2, 3, 4] returns [{true=>Hamster::Set[3, 1], false=>Hamster::Set[2, 4]}] without a block on [] returns [] on [1] returns [{1=>Hamster::Set[1]}] on [1, 2, 3, 4] returns [{1=>Hamster::Set[1], 2=>Hamster::Set[2], 3=>Hamster::Set[3], 4=>Hamster::Set[4]}] on an empty set returns an empty hash from a subclass returns an Hash whose values are instances of the subclass #classify returns a hash without default proc with a block on [] returns [] on [1] returns [{true=>Hamster::Set[1]}] on [1, 2, 3, 4] returns [{true=>Hamster::Set[3, 1], false=>Hamster::Set[2, 4]}] without a block on [] returns [] on [1] returns [{1=>Hamster::Set[1]}] on [1, 2, 3, 4] returns [{1=>Hamster::Set[1], 2=>Hamster::Set[2], 3=>Hamster::Set[3], 4=>Hamster::Set[4]}] on an empty set returns an empty hash from a subclass returns an Hash whose values are instances of the subclass Hamster::Set #hash generates the same hash value for a set regardless of the order things were added to it values are sufficiently distributed on an empty set returns 0 Hamster::Set includes Immutable Hamster::Set #include? returns true for an existing value ("A") returns true for an existing value ("B") returns true for an existing value ("C") returns true for an existing value (2.0) returns true for an existing value (nil) returns false for a non-existing value returns true even if existing value is nil returns true even if existing value is false returns false for a mutable item which is mutated after adding uses #eql? for equality returns the right answers after a lot of addings and removings #member? returns true for an existing value ("A") returns true for an existing value ("B") returns true for an existing value ("C") returns true for an existing value (2.0) returns true for an existing value (nil) returns false for a non-existing value returns true even if existing value is nil returns true even if existing value is false returns false for a mutable item which is mutated after adding uses #eql? for equality returns the right answers after a lot of addings and removings Hamster::Set #inspect on [] returns "Hamster::Set[]" returns a string which can be eval'd to get an equivalent set on ["A"] returns "Hamster::Set[\"A\"]" returns a string which can be eval'd to get an equivalent set on ["A", "B", "C"] returns a programmer-readable representation of the set contents returns a string which can be eval'd to get an equivalent set from a subclass returns a programmer-readable representation of the set contents returns a string which can be eval'd to get an equivalent set Hamster::Set #intersect? for [] and [] returns false for ["A"] and [] returns false for [] and ["A"] returns false for ["A"] and ["A"] returns true for ["A", "B", "C"] and ["B"] returns true for ["B"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["D", "E"] returns false for ["F", "G", "H", "I"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C", "D"] returns true for ["D", "E", "F", "G"] and ["A", "B", "C"] returns false Hamster::Set #intersection returns results consistent with Array#& for [] and [] returns [], without changing the original Sets for [] and [] returns [], without changing the original Sets when passed a Ruby Array returns the expected Set for ["A"] and [] returns [], without changing the original Sets for [] and ["A"] returns [], without changing the original Sets when passed a Ruby Array returns the expected Set for ["A"] and ["A"] returns ["A"], without changing the original Sets for ["A"] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B"] returns ["B"], without changing the original Sets for ["B"] and ["A", "B", "C"] returns ["B"], without changing the original Sets when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["A", "C"] returns ["A", "C"], without changing the original Sets for ["A", "C"] and ["A", "B", "C"] returns ["A", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set #& returns results consistent with Array#& for [] and [] returns [], without changing the original Sets for [] and [] returns [], without changing the original Sets when passed a Ruby Array returns the expected Set for ["A"] and [] returns [], without changing the original Sets for [] and ["A"] returns [], without changing the original Sets when passed a Ruby Array returns the expected Set for ["A"] and ["A"] returns ["A"], without changing the original Sets for ["A"] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["B"] returns ["B"], without changing the original Sets for ["B"] and ["A", "B", "C"] returns ["B"], without changing the original Sets when passed a Ruby Array returns the expected Set for ["A", "B", "C"] and ["A", "C"] returns ["A", "C"], without changing the original Sets for ["A", "C"] and ["A", "B", "C"] returns ["A", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set Hamster::Set #join with a separator on [] preserves the original returns "" on ["A"] preserves the original returns "A" on ["A", "B", "C"] preserves the original returns "A|B|C" without a separator on [] preserves the original returns "" on ["A"] preserves the original returns "A" on ["A", "B", "C"] preserves the original returns "ABC" without a separator (with global default separator set) on ['A', 'B', 'C'] preserves the original returns nil Hamster::Set #map works on large sets when empty returns self when not empty with a block preserves the original values returns a new set with the mapped values with no block returns an Enumerator from a subclass returns an instance of the subclass when multiple items map to the same value filters out the duplicates #collect works on large sets when empty returns self when not empty with a block preserves the original values returns a new set with the mapped values with no block returns an Enumerator from a subclass returns an instance of the subclass when multiple items map to the same value filters out the duplicates Hamster::Set #marshal_dump/#marshal_load can survive dumping and loading into a new process is still possible to test items by key after loading Hamster::Set #max with a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ichi" without a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "San" Hamster::Set #min with a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ni" without a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ichi" Hamster::Set .new initializes a new set accepts a Range returns a Set which doesn't change even if the initializer is mutated is amenable to overriding of #initialize from a subclass returns a frozen instance of the subclass [] accepts any number of arguments and initializes a new set Hamster::Set #none? when empty with a block returns true with no block returns true when not empty with a block returns false if the block ever returns true ("A") returns false if the block ever returns true ("B") returns false if the block ever returns true ("C") returns false if the block ever returns true (nil) returns true if the block always returns false stops iterating as soon as the block returns true with no block returns false if any value is truthy returns true if all values are falsey Hamster::Set #one? when empty with a block returns false with no block returns false when not empty with a block returns false if the block returns true more than once returns false if the block never returns true returns true if the block only returns true once with no block returns false if more than one value is truthy returns true if only one value is truthy returns false if no values are truthy Hamster::Set #partition on [] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2, 3] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2, 3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [2, 3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator Hamster::Set #product on [] returns 1 doesn't change the original Set on [2] returns 2 doesn't change the original Set on [1, 3, 5, 7, 11] returns 1155 doesn't change the original Set Hamster::Set #reduce on [] with an initial value of 10 and a block returns 10 on [1] with an initial value of 10 and a block returns 9 on [1, 2, 3] with an initial value of 10 and a block returns 4 on [] with no initial value and a block returns nil on [1] with no initial value and a block returns 1 on [1, 2, 3] with no initial value and a block returns 6 with no block and a symbol argument uses the symbol as the name of a method to reduce with with no block and a string argument uses the string as the name of a method to reduce with #inject on [] with an initial value of 10 and a block returns 10 on [1] with an initial value of 10 and a block returns 9 on [1, 2, 3] with an initial value of 10 and a block returns 4 on [] with no initial value and a block returns nil on [1] with no initial value and a block returns 1 on [1, 2, 3] with no initial value and a block returns 6 with no block and a symbol argument uses the symbol as the name of a method to reduce with with no block and a string argument uses the string as the name of a method to reduce with Hamster::Set #reject when nothing matches returns self when only some things match with a block preserves the original returns a set with the matching values with no block returns self on a large set, with many combinations of input still works #delete_if when nothing matches returns self when only some things match with a block preserves the original returns a set with the matching values with no block returns self on a large set, with many combinations of input still works Hamster::Set #reverse_each without a block returns an Enumerator with an empty block returns self with a block yields all values Hamster::Set #sample returns a randomly chosen item Hamster::Set #select works on a large set, with many combinations of input when everything matches returns self when only some things match with a block preserves the original returns a set with the matching values with no block returns an Enumerator when nothing matches preserves the original returns the canonical empty set from a subclass returns an instance of the same class #find_all works on a large set, with many combinations of input when everything matches returns self when only some things match with a block preserves the original returns a set with the matching values with no block returns an Enumerator when nothing matches preserves the original returns the canonical empty set from a subclass returns an instance of the same class Hamster::Set #size returns 0 for [] returns 1 for ["A"] returns 3 for ["A", "B", "C"] #length returns 0 for [] returns 1 for ["A"] returns 3 for ["A", "B", "C"] Hamster::Set #sort on [] with a block returns [] doesn't change the original Set without a block returns [] doesn't change the original Set on ["A"] with a block returns ["A"] doesn't change the original Set without a block returns ["A"] doesn't change the original Set on ["Ichi", "Ni", "San"] with a block returns ["Ni", "San", "Ichi"] doesn't change the original Set without a block returns ["Ichi", "Ni", "San"] doesn't change the original Set #sort_by on [] with a block returns [] doesn't change the original Set without a block returns [] doesn't change the original Set on ["A"] with a block returns ["A"] doesn't change the original Set without a block returns ["A"] doesn't change the original Set on ["Ichi", "Ni", "San"] with a block returns ["Ni", "San", "Ichi"] doesn't change the original Set without a block returns ["Ichi", "Ni", "San"] doesn't change the original Set #sort_by only calls the passed block once for each item Hamster::Set #subset? for [] and [] returns true for ["A"] and [] returns false for [] and ["A"] returns true for ["A"] and ["A"] returns true for ["A", "B", "C"] and ["B"] returns false for ["B"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "C"] returns false for ["A", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C", "D"] returns true for ["A", "B", "C", "D"] and ["A", "B", "C"] returns false #<= for [] and [] returns true for ["A"] and [] returns false for [] and ["A"] returns true for ["A"] and ["A"] returns true for ["A", "B", "C"] and ["B"] returns false for ["B"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "C"] returns false for ["A", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C", "D"] returns true for ["A", "B", "C", "D"] and ["A", "B", "C"] returns false #proper_subset? for [] and [] returns false for ["A"] and [] returns false for [] and ["A"] returns true for ["A"] and ["A"] returns false for ["A", "B", "C"] and ["B"] returns false for ["B"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "C"] returns false for ["A", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C", "D"] returns true for ["A", "B", "C", "D"] and ["A", "B", "C"] returns false #< for [] and [] returns false for ["A"] and [] returns false for [] and ["A"] returns true for ["A"] and ["A"] returns false for ["A", "B", "C"] and ["B"] returns false for ["B"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "C"] returns false for ["A", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C", "D"] returns true for ["A", "B", "C", "D"] and ["A", "B", "C"] returns false Hamster::Set #sum on [] returns 0 doesn't change the original Set on [2] returns 2 doesn't change the original Set on [1, 3, 5, 7, 11] returns 27 doesn't change the original Set Hamster::Set #superset? for [] and [] returns true for ["A"] and [] returns true for [] and ["A"] returns false for ["A"] and ["A"] returns true for ["A", "B", "C"] and ["B"] returns true for ["B"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "C"] returns true for ["A", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C", "D"] returns false for ["A", "B", "C", "D"] and ["A", "B", "C"] returns true #>= for [] and [] returns true for ["A"] and [] returns true for [] and ["A"] returns false for ["A"] and ["A"] returns true for ["A", "B", "C"] and ["B"] returns true for ["B"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "C"] returns true for ["A", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C", "D"] returns false for ["A", "B", "C", "D"] and ["A", "B", "C"] returns true #proper_superset? for [] and [] returns false for ["A"] and [] returns true for [] and ["A"] returns false for ["A"] and ["A"] returns false for ["A", "B", "C"] and ["B"] returns true for ["B"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "C"] returns true for ["A", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C", "D"] returns false for ["A", "B", "C", "D"] and ["A", "B", "C"] returns true #> for [] and [] returns false for ["A"] and [] returns true for [] and ["A"] returns false for ["A"] and ["A"] returns false for ["A", "B", "C"] and ["B"] returns true for ["B"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "C"] returns true for ["A", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C", "D"] returns false for ["A", "B", "C", "D"] and ["A", "B", "C"] returns true Hamster::Set #to_a on 'a'..'a' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'b' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'c' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'d' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'e' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'f' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'g' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'h' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'i' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'j' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'k' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'l' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'m' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'n' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'o' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'p' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'q' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'r' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'s' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'t' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'u' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'v' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'w' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'x' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'y' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'z' returns an equivalent array doesn't change the original Set returns a mutable array #entries on 'a'..'a' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'b' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'c' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'d' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'e' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'f' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'g' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'h' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'i' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'j' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'k' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'l' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'m' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'n' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'o' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'p' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'q' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'r' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'s' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'t' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'u' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'v' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'w' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'x' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'y' returns an equivalent array doesn't change the original Set returns a mutable array on 'a'..'z' returns an equivalent array doesn't change the original Set returns a mutable array Hamster::Set #to_list on [] returns a list doesn't change the original Set the returned list has the correct length contains all values on ["A"] returns a list doesn't change the original Set the returned list has the correct length contains all values on ["A", "B", "C"] returns a list doesn't change the original Set the returned list has the correct length contains all values Hamster::Set #to_set on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self Hamster::Set #union for [] and [] returns [], without changing the original Sets for [] and [] returns [], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A"] and [] returns ["A"], without changing the original Sets for [] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A"] and ["A"] returns ["A"], without changing the original Sets for ["A"] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for [] and ["A"] returns ["A"], without changing the original Sets for ["A"] and [] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and [] returns ["A", "B", "C"], without changing the original Sets for [] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets for ["A", "B", "C"] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and ["X", "Y", "Z"] returns ["A", "B", "C", "X", "Y", "Z"], without changing the original Sets for ["X", "Y", "Z"] and ["A", "B", "C"] returns ["A", "B", "C", "X", "Y", "Z"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass when receiving a subset returns self #| for [] and [] returns [], without changing the original Sets for [] and [] returns [], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A"] and [] returns ["A"], without changing the original Sets for [] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A"] and ["A"] returns ["A"], without changing the original Sets for ["A"] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for [] and ["A"] returns ["A"], without changing the original Sets for ["A"] and [] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and [] returns ["A", "B", "C"], without changing the original Sets for [] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets for ["A", "B", "C"] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and ["X", "Y", "Z"] returns ["A", "B", "C", "X", "Y", "Z"], without changing the original Sets for ["X", "Y", "Z"] and ["A", "B", "C"] returns ["A", "B", "C", "X", "Y", "Z"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass when receiving a subset returns self #+ for [] and [] returns [], without changing the original Sets for [] and [] returns [], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A"] and [] returns ["A"], without changing the original Sets for [] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A"] and ["A"] returns ["A"], without changing the original Sets for ["A"] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for [] and ["A"] returns ["A"], without changing the original Sets for ["A"] and [] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and [] returns ["A", "B", "C"], without changing the original Sets for [] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets for ["A", "B", "C"] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and ["X", "Y", "Z"] returns ["A", "B", "C", "X", "Y", "Z"], without changing the original Sets for ["X", "Y", "Z"] and ["A", "B", "C"] returns ["A", "B", "C", "X", "Y", "Z"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass when receiving a subset returns self #merge for [] and [] returns [], without changing the original Sets for [] and [] returns [], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A"] and [] returns ["A"], without changing the original Sets for [] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A"] and ["A"] returns ["A"], without changing the original Sets for ["A"] and ["A"] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for [] and ["A"] returns ["A"], without changing the original Sets for ["A"] and [] returns ["A"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and [] returns ["A", "B", "C"], without changing the original Sets for [] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets for ["A", "B", "C"] and ["A", "B", "C"] returns ["A", "B", "C"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass for ["A", "B", "C"] and ["X", "Y", "Z"] returns ["A", "B", "C", "X", "Y", "Z"], without changing the original Sets for ["X", "Y", "Z"] and ["A", "B", "C"] returns ["A", "B", "C", "X", "Y", "Z"], without changing the original Sets when passed a Ruby Array returns the expected Set from a subclass returns an instance of the subclass when receiving a subset returns self Hamster::SortedSet #above when called without a block returns a sorted set of all items higher than the argument when called with a block yields all the items higher than the argument on an empty set returns an empty set with an argument higher than all the values in the set returns an empty set Hamster::SortedSet #add with a unique value preserves the original returns a copy with the superset of values (in order) with a duplicate value preserves the original values returns self on a set ordered by a comparator inserts the new item in the correct place #<< with a unique value preserves the original returns a copy with the superset of values (in order) with a duplicate value preserves the original values returns self on a set ordered by a comparator inserts the new item in the correct place #add? with a unique value preserves the original returns a copy with the superset of values with a duplicate value preserves the original values returns false Hamster::SortedSet #at [] with 10 returns nil ["A"] with 10 returns nil ["A", "B", "C"] with 0 returns "A" ["A", "B", "C"] with 1 returns "B" ["A", "B", "C"] with 2 returns "C" ["A", "B", "C"] with 3 returns nil ["A", "B", "C"] with -1 returns "C" ["A", "B", "C"] with -2 returns "B" ["A", "B", "C"] with -3 returns "A" ["A", "B", "C"] with -4 returns nil Hamster::SortedSet #below when called without a block returns a sorted set of all items lower than the argument when called with a block yields all the items lower than the argument on an empty set returns an empty set with an argument lower than all the values in the set returns an empty set Hamster::SortedSet #between when called without a block returns a sorted set of all items from the first argument to the second when called with a block yields all the items lower than the argument on an empty set returns an empty set with a 'to' argument lower than the 'from' argument returns an empty set Hamster::SortedSet #clear on [] preserves the original returns an empty set on ["A"] preserves the original returns an empty set on ["A", "B", "C"] preserves the original returns an empty set from a subclass returns an empty instance of the subclass with a comparator returns an empty instance with same comparator Hamster::SortedSet on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self on 1..32 returns self on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self on 1..32 returns self Hamster::SortedSet #delete_at removes the element at the specified index makes no modification if the index is out of range Hamster::SortedSet #delete on an empty set returns an empty set with an existing value preserves the original returns a copy with the remaining of values with a non-existing value preserves the original values returns self when removing the last value in a sorted set maintains the set order when the set is in natural order returns the canonical empty set on [1, 2, 3], when deleting [1, 2, 3] returns [] on [1, 2, 3, 4], when deleting [1, 2, 3] returns [4] on [1, 2, 3, 4], when deleting [1, 2, 4] returns [3] on [1, 2, 3, 4], when deleting [1, 3, 4] returns [2] on [1, 2, 3, 4], when deleting [2, 3, 4] returns [1] on [1, 2, 3, 4, 5], when deleting [1, 2, 3] returns [4, 5] on [1, 2, 3, 4, 5], when deleting [1, 2, 4] returns [3, 5] on [1, 2, 3, 4, 5], when deleting [1, 2, 5] returns [3, 4] on [1, 2, 3, 4, 5], when deleting [1, 3, 4] returns [2, 5] on [1, 2, 3, 4, 5], when deleting [1, 3, 5] returns [2, 4] on [1, 2, 3, 4, 5], when deleting [1, 4, 5] returns [2, 3] on [1, 2, 3, 4, 5], when deleting [2, 3, 4] returns [1, 5] on [1, 2, 3, 4, 5], when deleting [2, 3, 5] returns [1, 4] on [1, 2, 3, 4, 5], when deleting [2, 4, 5] returns [1, 3] on [1, 2, 3, 4, 5], when deleting [3, 4, 5] returns [1, 2] on [1, 2, 3, 4, 5, 6], when deleting [1, 2, 3] returns [4, 5, 6] on [1, 2, 3, 4, 5, 6], when deleting [1, 2, 4] returns [3, 5, 6] on [1, 2, 3, 4, 5, 6], when deleting [1, 2, 5] returns [3, 4, 6] on [1, 2, 3, 4, 5, 6], when deleting [1, 2, 6] returns [3, 4, 5] on [1, 2, 3, 4, 5, 6], when deleting [1, 3, 4] returns [2, 5, 6] on [1, 2, 3, 4, 5, 6], when deleting [1, 3, 5] returns [2, 4, 6] on [1, 2, 3, 4, 5, 6], when deleting [1, 3, 6] returns [2, 4, 5] on [1, 2, 3, 4, 5, 6], when deleting [1, 4, 5] returns [2, 3, 6] on [1, 2, 3, 4, 5, 6], when deleting [1, 4, 6] returns [2, 3, 5] on [1, 2, 3, 4, 5, 6], when deleting [1, 5, 6] returns [2, 3, 4] on [1, 2, 3, 4, 5, 6], when deleting [2, 3, 4] returns [1, 5, 6] on [1, 2, 3, 4, 5, 6], when deleting [2, 3, 5] returns [1, 4, 6] on [1, 2, 3, 4, 5, 6], when deleting [2, 3, 6] returns [1, 4, 5] on [1, 2, 3, 4, 5, 6], when deleting [2, 4, 5] returns [1, 3, 6] on [1, 2, 3, 4, 5, 6], when deleting [2, 4, 6] returns [1, 3, 5] on [1, 2, 3, 4, 5, 6], when deleting [2, 5, 6] returns [1, 3, 4] on [1, 2, 3, 4, 5, 6], when deleting [3, 4, 5] returns [1, 2, 6] on [1, 2, 3, 4, 5, 6], when deleting [3, 4, 6] returns [1, 2, 5] on [1, 2, 3, 4, 5, 6], when deleting [3, 5, 6] returns [1, 2, 4] on [1, 2, 3, 4, 5, 6], when deleting [4, 5, 6] returns [1, 2, 3] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 2, 3] returns [4, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 2, 4] returns [3, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 2, 5] returns [3, 4, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 2, 6] returns [3, 4, 5, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 2, 7] returns [3, 4, 5, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 3, 4] returns [2, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 3, 5] returns [2, 4, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 3, 6] returns [2, 4, 5, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 3, 7] returns [2, 4, 5, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 4, 5] returns [2, 3, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 4, 6] returns [2, 3, 5, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 4, 7] returns [2, 3, 5, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 5, 6] returns [2, 3, 4, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 5, 7] returns [2, 3, 4, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [1, 6, 7] returns [2, 3, 4, 5] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 3, 4] returns [1, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 3, 5] returns [1, 4, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 3, 6] returns [1, 4, 5, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 3, 7] returns [1, 4, 5, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 4, 5] returns [1, 3, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 4, 6] returns [1, 3, 5, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 4, 7] returns [1, 3, 5, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 5, 6] returns [1, 3, 4, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 5, 7] returns [1, 3, 4, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [2, 6, 7] returns [1, 3, 4, 5] on [1, 2, 3, 4, 5, 6, 7], when deleting [3, 4, 5] returns [1, 2, 6, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [3, 4, 6] returns [1, 2, 5, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [3, 4, 7] returns [1, 2, 5, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [3, 5, 6] returns [1, 2, 4, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [3, 5, 7] returns [1, 2, 4, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [3, 6, 7] returns [1, 2, 4, 5] on [1, 2, 3, 4, 5, 6, 7], when deleting [4, 5, 6] returns [1, 2, 3, 7] on [1, 2, 3, 4, 5, 6, 7], when deleting [4, 5, 7] returns [1, 2, 3, 6] on [1, 2, 3, 4, 5, 6, 7], when deleting [4, 6, 7] returns [1, 2, 3, 5] on [1, 2, 3, 4, 5, 6, 7], when deleting [5, 6, 7] returns [1, 2, 3, 4] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 2, 3] returns [4, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 2, 4] returns [3, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 2, 5] returns [3, 4, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 2, 6] returns [3, 4, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 2, 7] returns [3, 4, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 2, 8] returns [3, 4, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 3, 4] returns [2, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 3, 5] returns [2, 4, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 3, 6] returns [2, 4, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 3, 7] returns [2, 4, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 3, 8] returns [2, 4, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 4, 5] returns [2, 3, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 4, 6] returns [2, 3, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 4, 7] returns [2, 3, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 4, 8] returns [2, 3, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 5, 6] returns [2, 3, 4, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 5, 7] returns [2, 3, 4, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 5, 8] returns [2, 3, 4, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 6, 7] returns [2, 3, 4, 5, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 6, 8] returns [2, 3, 4, 5, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [1, 7, 8] returns [2, 3, 4, 5, 6] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 3, 4] returns [1, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 3, 5] returns [1, 4, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 3, 6] returns [1, 4, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 3, 7] returns [1, 4, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 3, 8] returns [1, 4, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 4, 5] returns [1, 3, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 4, 6] returns [1, 3, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 4, 7] returns [1, 3, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 4, 8] returns [1, 3, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 5, 6] returns [1, 3, 4, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 5, 7] returns [1, 3, 4, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 5, 8] returns [1, 3, 4, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 6, 7] returns [1, 3, 4, 5, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 6, 8] returns [1, 3, 4, 5, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [2, 7, 8] returns [1, 3, 4, 5, 6] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 4, 5] returns [1, 2, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 4, 6] returns [1, 2, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 4, 7] returns [1, 2, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 4, 8] returns [1, 2, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 5, 6] returns [1, 2, 4, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 5, 7] returns [1, 2, 4, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 5, 8] returns [1, 2, 4, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 6, 7] returns [1, 2, 4, 5, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 6, 8] returns [1, 2, 4, 5, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [3, 7, 8] returns [1, 2, 4, 5, 6] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [4, 5, 6] returns [1, 2, 3, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [4, 5, 7] returns [1, 2, 3, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [4, 5, 8] returns [1, 2, 3, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [4, 6, 7] returns [1, 2, 3, 5, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [4, 6, 8] returns [1, 2, 3, 5, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [4, 7, 8] returns [1, 2, 3, 5, 6] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [5, 6, 7] returns [1, 2, 3, 4, 8] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [5, 6, 8] returns [1, 2, 3, 4, 7] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [5, 7, 8] returns [1, 2, 3, 4, 6] on [1, 2, 3, 4, 5, 6, 7, 8], when deleting [6, 7, 8] returns [1, 2, 3, 4, 5] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 2, 3] returns [4, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 2, 4] returns [3, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 2, 5] returns [3, 4, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 2, 6] returns [3, 4, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 2, 7] returns [3, 4, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 2, 8] returns [3, 4, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 2, 9] returns [3, 4, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 3, 4] returns [2, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 3, 5] returns [2, 4, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 3, 6] returns [2, 4, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 3, 7] returns [2, 4, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 3, 8] returns [2, 4, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 3, 9] returns [2, 4, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 4, 5] returns [2, 3, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 4, 6] returns [2, 3, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 4, 7] returns [2, 3, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 4, 8] returns [2, 3, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 4, 9] returns [2, 3, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 5, 6] returns [2, 3, 4, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 5, 7] returns [2, 3, 4, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 5, 8] returns [2, 3, 4, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 5, 9] returns [2, 3, 4, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 6, 7] returns [2, 3, 4, 5, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 6, 8] returns [2, 3, 4, 5, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 6, 9] returns [2, 3, 4, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 7, 8] returns [2, 3, 4, 5, 6, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 7, 9] returns [2, 3, 4, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [1, 8, 9] returns [2, 3, 4, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 3, 4] returns [1, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 3, 5] returns [1, 4, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 3, 6] returns [1, 4, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 3, 7] returns [1, 4, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 3, 8] returns [1, 4, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 3, 9] returns [1, 4, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 4, 5] returns [1, 3, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 4, 6] returns [1, 3, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 4, 7] returns [1, 3, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 4, 8] returns [1, 3, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 4, 9] returns [1, 3, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 5, 6] returns [1, 3, 4, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 5, 7] returns [1, 3, 4, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 5, 8] returns [1, 3, 4, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 5, 9] returns [1, 3, 4, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 6, 7] returns [1, 3, 4, 5, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 6, 8] returns [1, 3, 4, 5, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 6, 9] returns [1, 3, 4, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 7, 8] returns [1, 3, 4, 5, 6, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 7, 9] returns [1, 3, 4, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [2, 8, 9] returns [1, 3, 4, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 4, 5] returns [1, 2, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 4, 6] returns [1, 2, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 4, 7] returns [1, 2, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 4, 8] returns [1, 2, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 4, 9] returns [1, 2, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 5, 6] returns [1, 2, 4, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 5, 7] returns [1, 2, 4, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 5, 8] returns [1, 2, 4, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 5, 9] returns [1, 2, 4, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 6, 7] returns [1, 2, 4, 5, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 6, 8] returns [1, 2, 4, 5, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 6, 9] returns [1, 2, 4, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 7, 8] returns [1, 2, 4, 5, 6, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 7, 9] returns [1, 2, 4, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [3, 8, 9] returns [1, 2, 4, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 5, 6] returns [1, 2, 3, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 5, 7] returns [1, 2, 3, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 5, 8] returns [1, 2, 3, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 5, 9] returns [1, 2, 3, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 6, 7] returns [1, 2, 3, 5, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 6, 8] returns [1, 2, 3, 5, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 6, 9] returns [1, 2, 3, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 7, 8] returns [1, 2, 3, 5, 6, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 7, 9] returns [1, 2, 3, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [4, 8, 9] returns [1, 2, 3, 5, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [5, 6, 7] returns [1, 2, 3, 4, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [5, 6, 8] returns [1, 2, 3, 4, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [5, 6, 9] returns [1, 2, 3, 4, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [5, 7, 8] returns [1, 2, 3, 4, 6, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [5, 7, 9] returns [1, 2, 3, 4, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [5, 8, 9] returns [1, 2, 3, 4, 6, 7] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [6, 7, 8] returns [1, 2, 3, 4, 5, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [6, 7, 9] returns [1, 2, 3, 4, 5, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [6, 8, 9] returns [1, 2, 3, 4, 5, 7] on [1, 2, 3, 4, 5, 6, 7, 8, 9], when deleting [7, 8, 9] returns [1, 2, 3, 4, 5, 6] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 2, 3] returns [4, 5, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 2, 4] returns [3, 5, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 2, 5] returns [3, 4, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 2, 6] returns [3, 4, 5, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 2, 7] returns [3, 4, 5, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 2, 8] returns [3, 4, 5, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 2, 9] returns [3, 4, 5, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 2, 10] returns [3, 4, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 3, 4] returns [2, 5, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 3, 5] returns [2, 4, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 3, 6] returns [2, 4, 5, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 3, 7] returns [2, 4, 5, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 3, 8] returns [2, 4, 5, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 3, 9] returns [2, 4, 5, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 3, 10] returns [2, 4, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 4, 5] returns [2, 3, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 4, 6] returns [2, 3, 5, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 4, 7] returns [2, 3, 5, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 4, 8] returns [2, 3, 5, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 4, 9] returns [2, 3, 5, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 4, 10] returns [2, 3, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 5, 6] returns [2, 3, 4, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 5, 7] returns [2, 3, 4, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 5, 8] returns [2, 3, 4, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 5, 9] returns [2, 3, 4, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 5, 10] returns [2, 3, 4, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 6, 7] returns [2, 3, 4, 5, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 6, 8] returns [2, 3, 4, 5, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 6, 9] returns [2, 3, 4, 5, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 6, 10] returns [2, 3, 4, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 7, 8] returns [2, 3, 4, 5, 6, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 7, 9] returns [2, 3, 4, 5, 6, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 7, 10] returns [2, 3, 4, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 8, 9] returns [2, 3, 4, 5, 6, 7, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 8, 10] returns [2, 3, 4, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [1, 9, 10] returns [2, 3, 4, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 3, 4] returns [1, 5, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 3, 5] returns [1, 4, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 3, 6] returns [1, 4, 5, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 3, 7] returns [1, 4, 5, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 3, 8] returns [1, 4, 5, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 3, 9] returns [1, 4, 5, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 3, 10] returns [1, 4, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 4, 5] returns [1, 3, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 4, 6] returns [1, 3, 5, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 4, 7] returns [1, 3, 5, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 4, 8] returns [1, 3, 5, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 4, 9] returns [1, 3, 5, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 4, 10] returns [1, 3, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 5, 6] returns [1, 3, 4, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 5, 7] returns [1, 3, 4, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 5, 8] returns [1, 3, 4, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 5, 9] returns [1, 3, 4, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 5, 10] returns [1, 3, 4, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 6, 7] returns [1, 3, 4, 5, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 6, 8] returns [1, 3, 4, 5, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 6, 9] returns [1, 3, 4, 5, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 6, 10] returns [1, 3, 4, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 7, 8] returns [1, 3, 4, 5, 6, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 7, 9] returns [1, 3, 4, 5, 6, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 7, 10] returns [1, 3, 4, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 8, 9] returns [1, 3, 4, 5, 6, 7, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 8, 10] returns [1, 3, 4, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [2, 9, 10] returns [1, 3, 4, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 4, 5] returns [1, 2, 6, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 4, 6] returns [1, 2, 5, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 4, 7] returns [1, 2, 5, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 4, 8] returns [1, 2, 5, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 4, 9] returns [1, 2, 5, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 4, 10] returns [1, 2, 5, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 5, 6] returns [1, 2, 4, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 5, 7] returns [1, 2, 4, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 5, 8] returns [1, 2, 4, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 5, 9] returns [1, 2, 4, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 5, 10] returns [1, 2, 4, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 6, 7] returns [1, 2, 4, 5, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 6, 8] returns [1, 2, 4, 5, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 6, 9] returns [1, 2, 4, 5, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 6, 10] returns [1, 2, 4, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 7, 8] returns [1, 2, 4, 5, 6, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 7, 9] returns [1, 2, 4, 5, 6, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 7, 10] returns [1, 2, 4, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 8, 9] returns [1, 2, 4, 5, 6, 7, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 8, 10] returns [1, 2, 4, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [3, 9, 10] returns [1, 2, 4, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 5, 6] returns [1, 2, 3, 7, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 5, 7] returns [1, 2, 3, 6, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 5, 8] returns [1, 2, 3, 6, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 5, 9] returns [1, 2, 3, 6, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 5, 10] returns [1, 2, 3, 6, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 6, 7] returns [1, 2, 3, 5, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 6, 8] returns [1, 2, 3, 5, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 6, 9] returns [1, 2, 3, 5, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 6, 10] returns [1, 2, 3, 5, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 7, 8] returns [1, 2, 3, 5, 6, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 7, 9] returns [1, 2, 3, 5, 6, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 7, 10] returns [1, 2, 3, 5, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 8, 9] returns [1, 2, 3, 5, 6, 7, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 8, 10] returns [1, 2, 3, 5, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [4, 9, 10] returns [1, 2, 3, 5, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 6, 7] returns [1, 2, 3, 4, 8, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 6, 8] returns [1, 2, 3, 4, 7, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 6, 9] returns [1, 2, 3, 4, 7, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 6, 10] returns [1, 2, 3, 4, 7, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 7, 8] returns [1, 2, 3, 4, 6, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 7, 9] returns [1, 2, 3, 4, 6, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 7, 10] returns [1, 2, 3, 4, 6, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 8, 9] returns [1, 2, 3, 4, 6, 7, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 8, 10] returns [1, 2, 3, 4, 6, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [5, 9, 10] returns [1, 2, 3, 4, 6, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [6, 7, 8] returns [1, 2, 3, 4, 5, 9, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [6, 7, 9] returns [1, 2, 3, 4, 5, 8, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [6, 7, 10] returns [1, 2, 3, 4, 5, 8, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [6, 8, 9] returns [1, 2, 3, 4, 5, 7, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [6, 8, 10] returns [1, 2, 3, 4, 5, 7, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [6, 9, 10] returns [1, 2, 3, 4, 5, 7, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [7, 8, 9] returns [1, 2, 3, 4, 5, 6, 10] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [7, 8, 10] returns [1, 2, 3, 4, 5, 6, 9] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [7, 9, 10] returns [1, 2, 3, 4, 5, 6, 8] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], when deleting [8, 9, 10] returns [1, 2, 3, 4, 5, 6, 7] #delete? with an existing value preserves the original returns a copy with the remaining values with a non-existing value preserves the original values returns false Hamster::SortedSet #difference for [] and [] returns [] for ["A"] and [] returns ["A"] for ["A"] and ["A"] returns [] for ["A", "B", "C"] and ["B"] returns ["A", "C"] for ["A", "B", "C"] and ["A", "C"] returns ["B"] for ["A", "B", "C", "D", "E", "F"] and ["B", "E", "F", "G", "M", "X"] returns ["A", "C", "D"] #subtract for [] and [] returns [] for ["A"] and [] returns ["A"] for ["A"] and ["A"] returns [] for ["A", "B", "C"] and ["B"] returns ["A", "C"] for ["A", "B", "C"] and ["A", "C"] returns ["B"] for ["A", "B", "C", "D", "E", "F"] and ["B", "E", "F", "G", "M", "X"] returns ["A", "C", "D"] #- for [] and [] returns [] for ["A"] and [] returns ["A"] for ["A"] and ["A"] returns [] for ["A", "B", "C"] and ["B"] returns ["A", "C"] for ["A", "B", "C"] and ["A", "C"] returns ["B"] for ["A", "B", "C", "D", "E", "F"] and ["B", "E", "F", "G", "M", "X"] returns ["A", "C", "D"] Hamster::SortedSet #disjoint? for [] and [] returns true for ["A"] and [] returns true for [] and ["A"] returns true for ["A"] and ["A"] returns false for ["A", "B", "C"] and ["B"] returns false for ["B"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["D", "E"] returns true for ["F", "G", "H", "I"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C", "D"] returns false for ["D", "E", "F", "G"] and ["A", "B", "C"] returns true Hamster::SortedSet #drop 0 from [] preserves the original returns [] 10 from [] preserves the original returns [] 10 from ["A"] preserves the original returns [] 0 from ["A", "B", "C"] preserves the original returns ["A", "B", "C"] 1 from ["A", "B", "C"] preserves the original returns ["B", "C"] 2 from ["A", "B", "C"] preserves the original returns ["C"] 3 from ["A", "B", "C"] preserves the original returns [] when argument is zero returns self when the set has a custom order maintains the custom order keeps the comparator even when set is cleared when called on a subclass should return an instance of the subclass Hamster::SortedSet #drop_while on [] with a block preserves the original returns [] without a block returns an Enumerator on ["A"] with a block preserves the original returns [] without a block returns an Enumerator on ["A", "B", "C"] with a block preserves the original returns ["C"] without a block returns an Enumerator on ["A", "B", "C", "D", "E", "F", "G"] with a block preserves the original returns ["C", "D", "E", "F", "G"] without a block returns an Enumerator Hamster::SortedSet #each with no block returns an Enumerator with a block returns self iterates over the items in order Hamster::SortedSet #empty? on [] returns true on ["A"] returns false on ["A", "B", "C"] returns false .empty returns the canonical empty set from a subclass returns an empty instance of the subclass Hamster::SortedSet #eql? when comparing to a standard set returns false when comparing to a arbitrary object returns false when comparing to a Hamster::Set returns false when comparing with a subclass of Hamster::SortedSet returns false with an empty set for each comparison returns true with an empty set and a set with nil returns false with a single item array and empty array returns false with matching single item array returns true with mismatching single item array returns false with a multi-item array and single item array returns false with matching multi-item array returns true with a mismatching multi-item array returns true with the same values, but a different sort order returns false Hamster::SortedSet #exclusion for [] and [] returns [] for ["A"] and [] returns ["A"] for ["A"] and ["A"] returns [] for ["A", "B", "C"] and ["B"] returns ["A", "C"] for ["A", "B", "C"] and ["B", "C", "D"] returns ["A", "D"] for ["A", "B", "C"] and ["D", "E", "F"] returns ["A", "B", "C", "D", "E", "F"] #^ for [] and [] returns [] for ["A"] and [] returns ["A"] for ["A"] and ["A"] returns [] for ["A", "B", "C"] and ["B"] returns ["A", "C"] for ["A", "B", "C"] and ["B", "C", "D"] returns ["A", "D"] for ["A", "B", "C"] and ["D", "E", "F"] returns ["A", "B", "C", "D", "E", "F"] Hamster::SortedSet #fetch gives precedence to default block over default argument if passed both with no default provided when the index exists returns the value at the index when the key does not exist raises an IndexError with a default value when the index exists returns the value at the index when the index does not exist returns the default value with a default block when the index exists returns the value at the index when the index does not exist invokes the block with the missing index as parameter Hamster::SortedSet #find_index looking for "A" in [] without block returns nil looking for "A" in [] with block returns nil looking for nil in [] with block returns nil looking for "A" in ["A"] without block returns 0 looking for "A" in ["A"] with block returns 0 looking for "B" in ["A"] without block returns nil looking for "B" in ["A"] with block returns nil looking for nil in ["A"] with block returns nil looking for "A" in ["A", "B", "C"] without block returns 0 looking for "A" in ["A", "B", "C"] with block returns 0 looking for "B" in ["A", "B", "C"] without block returns 1 looking for "B" in ["A", "B", "C"] with block returns 1 looking for "C" in ["A", "B", "C"] without block returns 2 looking for "C" in ["A", "B", "C"] with block returns 2 looking for "D" in ["A", "B", "C"] without block returns nil looking for "D" in ["A", "B", "C"] with block returns nil looking for 1 in 0..1 without block returns 1 looking for 1 in 0..1 with block returns 1 looking for 5 in 0..10 without block returns 5 looking for 5 in 0..10 with block returns 5 looking for 10 in 0..10 without block returns 10 looking for 10 in 0..10 with block returns 10 looking for 2 in [2] without block returns 0 looking for 2 in [2] with block returns 0 looking for 2.0 in [2] without block returns 0 looking for 2.0 in [2] with block returns 0 looking for 2.0 in [2.0] without block returns 0 looking for 2.0 in [2.0] with block returns 0 looking for 2 in [2.0] without block returns 0 looking for 2 in [2.0] with block returns 0 #index looking for "A" in [] without block returns nil looking for "A" in [] with block returns nil looking for nil in [] with block returns nil looking for "A" in ["A"] without block returns 0 looking for "A" in ["A"] with block returns 0 looking for "B" in ["A"] without block returns nil looking for "B" in ["A"] with block returns nil looking for nil in ["A"] with block returns nil looking for "A" in ["A", "B", "C"] without block returns 0 looking for "A" in ["A", "B", "C"] with block returns 0 looking for "B" in ["A", "B", "C"] without block returns 1 looking for "B" in ["A", "B", "C"] with block returns 1 looking for "C" in ["A", "B", "C"] without block returns 2 looking for "C" in ["A", "B", "C"] with block returns 2 looking for "D" in ["A", "B", "C"] without block returns nil looking for "D" in ["A", "B", "C"] with block returns nil looking for 1 in 0..1 without block returns 1 looking for 1 in 0..1 with block returns 1 looking for 5 in 0..10 without block returns 5 looking for 5 in 0..10 with block returns 5 looking for 10 in 0..10 without block returns 10 looking for 10 in 0..10 with block returns 10 looking for 2 in [2] without block returns 0 looking for 2 in [2] with block returns 0 looking for 2.0 in [2] without block returns 0 looking for 2.0 in [2] with block returns 0 looking for 2.0 in [2.0] without block returns 0 looking for 2.0 in [2.0] with block returns 0 looking for 2 in [2.0] without block returns 0 looking for 2 in [2.0] with block returns 0 Hamster::SortedSet #first on [] returns nil on ["A"] returns "A" on ["A", "B", "C"] returns "A" on ["Z", "Y", "X"] returns "X" Hamster::SortedSet #from when called without a block returns a sorted set of all items equal to or greater than the argument when called with a block yields all the items equal to or greater than than the argument on an empty set returns an empty set with an argument higher than all the values in the set returns an empty set Hamster::SortedSet #group_by with a block on [] preserves the original returns [] on [1] preserves the original returns [{true=>Hamster::SortedSet[1]}] on [1, 2, 3, 4] preserves the original returns [{true=>Hamster::SortedSet[1, 3], false=>Hamster::SortedSet[2, 4]}] without a block on [] preserves the original returns [] on [1] preserves the original returns [{1=>Hamster::SortedSet[1]}] on [1, 2, 3, 4] preserves the original returns [{1=>Hamster::SortedSet[1], 2=>Hamster::SortedSet[2], 3=>Hamster::SortedSet[3], 4=>Hamster::SortedSet[4]}] from a subclass returns an Hash whose values are instances of the subclass #group with a block on [] preserves the original returns [] on [1] preserves the original returns [{true=>Hamster::SortedSet[1]}] on [1, 2, 3, 4] preserves the original returns [{true=>Hamster::SortedSet[1, 3], false=>Hamster::SortedSet[2, 4]}] without a block on [] preserves the original returns [] on [1] preserves the original returns [{1=>Hamster::SortedSet[1]}] on [1, 2, 3, 4] preserves the original returns [{1=>Hamster::SortedSet[1], 2=>Hamster::SortedSet[2], 3=>Hamster::SortedSet[3], 4=>Hamster::SortedSet[4]}] from a subclass returns an Hash whose values are instances of the subclass #classify with a block on [] preserves the original returns [] on [1] preserves the original returns [{true=>Hamster::SortedSet[1]}] on [1, 2, 3, 4] preserves the original returns [{true=>Hamster::SortedSet[1, 3], false=>Hamster::SortedSet[2, 4]}] without a block on [] preserves the original returns [] on [1] preserves the original returns [{1=>Hamster::SortedSet[1]}] on [1, 2, 3, 4] preserves the original returns [{1=>Hamster::SortedSet[1], 2=>Hamster::SortedSet[2], 3=>Hamster::SortedSet[3], 4=>Hamster::SortedSet[4]}] from a subclass returns an Hash whose values are instances of the subclass Hamster::SortedSet #include? returns true for an existing value (1) returns true for an existing value (2) returns true for an existing value (3) returns true for an existing value (4.0) returns false for a non-existing value uses #<=> for equality #member? returns true for an existing value (1) returns true for an existing value (2) returns true for an existing value (3) returns true for an existing value (4.0) returns false for a non-existing value uses #<=> for equality Hamster::SortedSet #inspect on [] returns "Hamster::SortedSet[]" returns a string which can be eval'd to get an equivalent set on ["A"] returns "Hamster::SortedSet[\"A\"]" returns a string which can be eval'd to get an equivalent set on ["C", "B", "A"] returns "Hamster::SortedSet[\"A\", \"B\", \"C\"]" returns a string which can be eval'd to get an equivalent set from a subclass returns a programmer-readable representation of the set contents returns a string which can be eval'd to get an equivalent set Hamster::SortedSet #intersect? for [] and [] returns false for ["A"] and [] returns false for [] and ["A"] returns false for ["A"] and ["A"] returns true for ["A", "B", "C"] and ["B"] returns true for ["B"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["D", "E"] returns false for ["F", "G", "H", "I"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C", "D"] returns true for ["D", "E", "F", "G"] and ["A", "B", "C"] returns false Hamster::SortedSet #intersection for [] and [] returns [] for [] and [] returns [] for ["A"] and [] returns [] for [] and ["A"] returns [] for ["A"] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A", "B", "C"] and ["B"] returns ["B"] for ["B"] and ["A", "B", "C"] returns ["B"] for ["A", "B", "C"] and ["A", "C"] returns ["A", "C"] for ["A", "C"] and ["A", "B", "C"] returns ["A", "C"] for ["A", "M", "T", "X"] and ["B", "C", "D", "E", "F", "G", "H", "I", "M", "P", "Q", "T", "U"] returns ["M", "T"] for ["B", "C", "D", "E", "F", "G", "H", "I", "M", "P", "Q", "T", "U"] and ["A", "M", "T", "X"] returns ["M", "T"] #& for [] and [] returns [] for [] and [] returns [] for ["A"] and [] returns [] for [] and ["A"] returns [] for ["A"] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A", "B", "C"] and ["B"] returns ["B"] for ["B"] and ["A", "B", "C"] returns ["B"] for ["A", "B", "C"] and ["A", "C"] returns ["A", "C"] for ["A", "C"] and ["A", "B", "C"] returns ["A", "C"] for ["A", "M", "T", "X"] and ["B", "C", "D", "E", "F", "G", "H", "I", "M", "P", "Q", "T", "U"] returns ["M", "T"] for ["B", "C", "D", "E", "F", "G", "H", "I", "M", "P", "Q", "T", "U"] and ["A", "M", "T", "X"] returns ["M", "T"] Hamster::SortedSet #last with an empty set returns the last item with a single item set returns the last item with a multi-item set returns the last item Hamster::SortedSet #map when empty returns self when not empty with a block preserves the original values returns a new set with the mapped values with no block returns an Enumerator on a set ordered by a comparator returns a new set with the mapped values #collect when empty returns self when not empty with a block preserves the original values returns a new set with the mapped values with no block returns an Enumerator on a set ordered by a comparator returns a new set with the mapped values Hamster::SortedSet #marshal_dump/#marshal_load can survive dumping and loading into a new process is still possible to find items by index after loading raises a TypeError if set has a custom sort order Hamster::SortedSet #max with a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ichi" without a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "San" Hamster::SortedSet #min on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ichi" on [1, 2, 3, 4, 5] returns 1 on [0, -0.0, 2.2, -4, -4.2] returns -4.2 Hamster::SortedSet .new accepts a single enumerable argument and creates a new sorted set also works with a Range is amenable to overriding of #initialize accepts a block with arity 1 accepts a block with arity 2 can use a block produced by Symbol#to_proc from a subclass returns a frozen instance of the subclass .[] accepts a variable number of items and creates a new sorted set Hamster::SortedSet #reverse_each with no block returns an Enumerator with a block returns self iterates over the items in order Hamster::SortedSet #sample returns a randomly chosen item Hamster::SortedSet #select when everything matches preserves the original returns self when only some things match with a block preserves the original returns a set with the matching values with no block returns an Enumerator when nothing matches preserves the original returns the canonical empty set from a subclass returns an instance of the same class #find_all when everything matches preserves the original returns self when only some things match with a block preserves the original returns a set with the matching values with no block returns an Enumerator when nothing matches preserves the original returns the canonical empty set from a subclass returns an instance of the same class Hamster::SortedSet #size returns 0 for [] returns 1 for ["A"] returns 3 for ["A", "B", "C"] #length returns 0 for [] returns 1 for ["A"] returns 3 for ["A", "B", "C"] Hamster::SortedSet #slice when passed a positive integral index returns the element at that index leaves the original unchanged when passed a negative integral index returns the element which is number (index.abs) counting from the end of the sorted_set when passed a positive integral index and count returns 'count' elements starting from 'index' leaves the original unchanged when passed a negative integral index and count returns 'count' elements, starting from index which is number 'index.abs' counting from the end of the array when passed a Range returns the elements whose indexes are within the given Range leaves the original unchanged when passed an empty Range does not lose custom sort order when passed a length of zero does not lose custom sort order when passed a subclass of Range works the same as with a Range on a subclass of SortedSet with index and count or a range, returns an instance of the subclass #[] when passed a positive integral index returns the element at that index leaves the original unchanged when passed a negative integral index returns the element which is number (index.abs) counting from the end of the sorted_set when passed a positive integral index and count returns 'count' elements starting from 'index' leaves the original unchanged when passed a negative integral index and count returns 'count' elements, starting from index which is number 'index.abs' counting from the end of the array when passed a Range returns the elements whose indexes are within the given Range leaves the original unchanged when passed an empty Range does not lose custom sort order when passed a length of zero does not lose custom sort order when passed a subclass of Range works the same as with a Range on a subclass of SortedSet with index and count or a range, returns an instance of the subclass Hamster::SortedSet #sort on [] with a block preserves the original returns [] without a block preserves the original returns [] on ["A"] with a block preserves the original returns ["A"] without a block preserves the original returns ["A"] on ["Ichi", "Ni", "San"] with a block preserves the original returns ["Ni", "San", "Ichi"] without a block preserves the original returns ["Ichi", "Ni", "San"] #sort_by on [] with a block preserves the original returns [] without a block preserves the original returns [] on ["A"] with a block preserves the original returns ["A"] without a block preserves the original returns ["A"] on ["Ichi", "Ni", "San"] with a block preserves the original returns ["Ni", "San", "Ichi"] without a block preserves the original returns ["Ichi", "Ni", "San"] Hamster::SortedSet #subset? for [] and [] returns true for ["A"] and [] returns false for [] and ["A"] returns true for ["A"] and ["A"] returns true for ["A", "B", "C"] and ["B"] returns false for ["B"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "C"] returns false for ["A", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C", "D"] returns true for ["A", "B", "C", "D"] and ["A", "B", "C"] returns false #proper_subset? for [] and [] returns false for ["A"] and [] returns false for [] and ["A"] returns true for ["A"] and ["A"] returns false for ["A", "B", "C"] and ["B"] returns false for ["B"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "C"] returns false for ["A", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C", "D"] returns true for ["A", "B", "C", "D"] and ["A", "B", "C"] returns false Hamster::SortedSet #superset? for [] and [] returns true for ["A"] and [] returns true for [] and ["A"] returns false for ["A"] and ["A"] returns true for ["A", "B", "C"] and ["B"] returns true for ["B"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "C"] returns true for ["A", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C"] returns true for ["A", "B", "C"] and ["A", "B", "C", "D"] returns false for ["A", "B", "C", "D"] and ["A", "B", "C"] returns true #proper_superset? for [] and [] returns false for ["A"] and [] returns true for [] and ["A"] returns false for ["A"] and ["A"] returns false for ["A", "B", "C"] and ["B"] returns true for ["B"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "C"] returns true for ["A", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C"] returns false for ["A", "B", "C"] and ["A", "B", "C", "D"] returns false for ["A", "B", "C", "D"] and ["A", "B", "C"] returns true Hamster::SortedSet #take 10 from [] preserves the original returns [] 10 from ["A"] preserves the original returns ["A"] 0 from ["A", "B", "C"] preserves the original returns [] 2 from ["A", "B", "C"] preserves the original returns ["A", "B"] when argument is at least size of receiver returns self when the set has a custom order maintains the custom order keeps the comparator even when set is cleared when called on a subclass should return an instance of the subclass Hamster::SortedSet #take_while on [] with a block returns [] preserves the original without a block returns an Enumerator on ["A"] with a block returns ["A"] preserves the original without a block returns an Enumerator on ["A", "B", "C"] with a block returns ["A", "B"] preserves the original without a block returns an Enumerator Hamster::SortedSet #to_set on [] returns a set with the same values on ["A"] returns a set with the same values on ["A", "B", "C"] returns a set with the same values Hamster::SortedSet #union for [] and [] returns [] for [] and [] returns [] for ["A"] and [] returns ["A"] for [] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A", "B", "C"] and [] returns ["A", "B", "C"] for [] and ["A", "B", "C"] returns ["A", "B", "C"] for ["A", "C", "E", "G", "X"] and ["B", "C", "D", "E", "H", "M"] returns ["A", "B", "C", "D", "E", "G", "H", "M", "X"] for ["B", "C", "D", "E", "H", "M"] and ["A", "C", "E", "G", "X"] returns ["A", "B", "C", "D", "E", "G", "H", "M", "X"] #| for [] and [] returns [] for [] and [] returns [] for ["A"] and [] returns ["A"] for [] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A", "B", "C"] and [] returns ["A", "B", "C"] for [] and ["A", "B", "C"] returns ["A", "B", "C"] for ["A", "C", "E", "G", "X"] and ["B", "C", "D", "E", "H", "M"] returns ["A", "B", "C", "D", "E", "G", "H", "M", "X"] for ["B", "C", "D", "E", "H", "M"] and ["A", "C", "E", "G", "X"] returns ["A", "B", "C", "D", "E", "G", "H", "M", "X"] #+ for [] and [] returns [] for [] and [] returns [] for ["A"] and [] returns ["A"] for [] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A", "B", "C"] and [] returns ["A", "B", "C"] for [] and ["A", "B", "C"] returns ["A", "B", "C"] for ["A", "C", "E", "G", "X"] and ["B", "C", "D", "E", "H", "M"] returns ["A", "B", "C", "D", "E", "G", "H", "M", "X"] for ["B", "C", "D", "E", "H", "M"] and ["A", "C", "E", "G", "X"] returns ["A", "B", "C", "D", "E", "G", "H", "M", "X"] #merge for [] and [] returns [] for [] and [] returns [] for ["A"] and [] returns ["A"] for [] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A"] and ["A"] returns ["A"] for ["A", "B", "C"] and [] returns ["A", "B", "C"] for [] and ["A", "B", "C"] returns ["A", "B", "C"] for ["A", "C", "E", "G", "X"] and ["B", "C", "D", "E", "H", "M"] returns ["A", "B", "C", "D", "E", "G", "H", "M", "X"] for ["B", "C", "D", "E", "H", "M"] and ["A", "C", "E", "G", "X"] returns ["A", "B", "C", "D", "E", "G", "H", "M", "X"] Hamster::SortedSet #up_to when called without a block returns a sorted set of all items equal to or less than the argument when called with a block yields all the items equal to or less than than the argument on an empty set returns an empty set with an argument less than all the values in the set returns an empty set Hamster::SortedSet #values_at accepts any number of indices, and returns a sorted_set of items at those indices when passed invalid indices filters them out when passed no arguments returns an empty sorted_set from a subclass returns an instance of the subclass Hamster::Vector #add with a empty vector adding a single item preserves the original adds the item to the vector with a single-item vector adding a different item preserves the original adds the item to the vector with a single-item vector adding a duplicate item preserves the original adds the item to the vector with a 31-item vector adding a different item preserves the original adds the item to the vector with a 32-item vector adding a different item preserves the original adds the item to the vector with a 33-item vector adding a different item preserves the original adds the item to the vector with a 1023-item vector adding a different item preserves the original adds the item to the vector with a 1024-item vector adding a different item preserves the original adds the item to the vector with a 1025-item vector adding a different item preserves the original adds the item to the vector from a subclass returns an instance of the subclass #<< with a empty vector adding a single item preserves the original adds the item to the vector with a single-item vector adding a different item preserves the original adds the item to the vector with a single-item vector adding a duplicate item preserves the original adds the item to the vector with a 31-item vector adding a different item preserves the original adds the item to the vector with a 32-item vector adding a different item preserves the original adds the item to the vector with a 33-item vector adding a different item preserves the original adds the item to the vector with a 1023-item vector adding a different item preserves the original adds the item to the vector with a 1024-item vector adding a different item preserves the original adds the item to the vector with a 1025-item vector adding a different item preserves the original adds the item to the vector from a subclass returns an instance of the subclass #push with a empty vector adding a single item preserves the original adds the item to the vector with a single-item vector adding a different item preserves the original adds the item to the vector with a single-item vector adding a duplicate item preserves the original adds the item to the vector with a 31-item vector adding a different item preserves the original adds the item to the vector with a 32-item vector adding a different item preserves the original adds the item to the vector with a 33-item vector adding a different item preserves the original adds the item to the vector with a 1023-item vector adding a different item preserves the original adds the item to the vector with a 1024-item vector adding a different item preserves the original adds the item to the vector with a 1025-item vector adding a different item preserves the original adds the item to the vector from a subclass returns an instance of the subclass Hamster::Vector #any? when created with no values with a block returns false with a block returns false when created with values with a block that returns true returns true with a block that doesn't return true returns false without a block with some values that are truthy returns true with all values that are falsey returns false Hamster::Vector #assoc searches for a 2-element array with a given 1st item returns nil if a matching 1st item is not found uses #== to compare 1st items with provided object skips elements which are not indexable #rassoc searches for a 2-element array with a given 2nd item returns nil if a matching 2nd item is not found uses #== to compare 2nd items with provided object skips elements which are not indexable Hamster::Vector #bsearch with a block which returns false for elements below desired position, and true for those at/above returns the first element for which the predicate is true if the block always returns false returns nil if the block always returns true returns the first element with a block which returns a negative number for elements below desired position, zero for the right element, and positive for those above returns the element for which the block returns zero if the block always returns positive returns nil if the block always returns negative returns nil if the block returns sometimes positive, sometimes negative, but never zero returns nil if not passed a block returns an Enumerator on an empty vector returns nil Hamster::Vector #clear on [] preserves the original returns an empty vector from a subclass returns an instance of the subclass on ["A"] preserves the original returns an empty vector from a subclass returns an instance of the subclass on ["A", "B", "C"] preserves the original returns an empty vector from a subclass returns an instance of the subclass Hamster::Vector #combination works on many combinations of input leaves the original unmodified with a block returns self with no block returns an Enumerator when passed an argument which is out of bounds yields nothing and returns self when passed an argument zero yields an empty array when passed an argument equal to the vector's length yields self as an array when passed an argument 1 yields each item in the vector, as single-item vectors when passed another integral argument yields all combinations of the given length on an empty vector works the same Hamster::Vector #compact returns a new Vector with all nils removed doesn't remove false on an empty vector returns self from a subclass returns an instance of the subclass Hamster::Vector #<=> with [] and [1] returns -1 with [1] and [] returns 1 with [] and [] returns 0 with [1] and [2] returns -1 with [2] and [1] returns 1 with [1] and [1] returns 0 with [1] and [1, 2] returns -1 with [1, 2] and [1] returns 1 with [1] and [1] returns 0 with [2, 3, 4] and [3, 4, 5] returns -1 with [3, 4, 5] and [2, 3, 4] returns 1 with [2, 3, 4] and [2, 3, 4] returns 0 with [[0]] and [[1]] returns -1 with [[1]] and [[0]] returns 1 with [[0]] and [[0]] returns 0 Hamster::Vector #+ preserves the original appends the elements in the other enumerable on a 1-item vector works the same on a 31-item vector works the same on a 32-item vector works the same on a 33-item vector works the same on a 1023-item vector works the same on a 1024-item vector works the same on a 1025-item vector works the same #concat preserves the original appends the elements in the other enumerable on a 1-item vector works the same on a 31-item vector works the same on a 32-item vector works the same on a 33-item vector works the same on a 1023-item vector works the same on a 1024-item vector works the same on a 1025-item vector works the same Hamster::Vector on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self on 1..32 returns self on [] returns self on ["A"] returns self on ["A", "B", "C"] returns self on 1..32 returns self Hamster::Vector #count returns the number of elements returns the number of elements that equal the argument returns the number of element for which the block evaluates to true Hamster::Vector #delete_at removes the element at the specified index makes no modification if the index is out of range works when deleting last item at boundary where vector trie needs to get shallower works on an empty vector works on a vector with 1 item works on a vector with 32 items has the right size and contents after many deletions Hamster::Vector #delete removes elements that are #== to the argument on an empty vector returns self on a subclass of Vector returns an instance of the subclass Hamster::Vector #dig returns value at the index with one argument returns value at index in nested arrays returns nil when indexing deeper than possible returns nil if you index past the end of an array raises a type error when indexing with a key arrays don't understand Hamster::Vector #drop raises an ArgumentError if number of elements specified is negative 10 from [] preserves the original returns [] 10 from ["A"] preserves the original returns [] 1 from ["A"] preserves the original returns [] 0 from ["A"] preserves the original returns ["A"] 0 from ["A", "B", "C"] preserves the original returns ["A", "B", "C"] 2 from ["A", "B", "C"] preserves the original returns ["C"] 3 from 1..32 preserves the original returns 4..32 32 from 1..33 preserves the original returns [33] when number of elements specified is zero returns self Hamster::Vector #drop_while returns an empty vector if block is always true stops dropping items if block returns nil stops dropping items if block returns false on [] with a block preserves the original returns [] without a block returns an Enumerator on ["A"] with a block preserves the original returns [] without a block returns an Enumerator on ["A", "B", "C"] with a block preserves the original returns ["C"] without a block returns an Enumerator on an empty vector returns an empty vector Hamster::Vector #each_index with a block yields all the valid indices into the vector returns self without a block returns an Enumerator on an empty vector doesn't yield anything on a 1-item vector yields all valid indices on a 2-item vector yields all valid indices on a 10-item vector yields all valid indices on a 31-item vector yields all valid indices on a 32-item vector yields all valid indices on a 33-item vector yields all valid indices on a 1000-item vector yields all valid indices on a 1024-item vector yields all valid indices on a 1025-item vector yields all valid indices Hamster::Vector #each with no block returns an Enumerator on a 31-item vector with a block returns self yields all the items iterates over the items in order on a 32-item vector with a block returns self yields all the items iterates over the items in order on a 33-item vector with a block returns self yields all the items iterates over the items in order on a 1023-item vector with a block returns self yields all the items iterates over the items in order on a 1024-item vector with a block returns self yields all the items iterates over the items in order on a 1025-item vector with a block returns self yields all the items iterates over the items in order on an empty vector doesn't yield anything Hamster::Vector #each_with_index with no block returns an Enumerator on a 1-item vector with a block returns self iterates over the items in order on a 2-item vector with a block returns self iterates over the items in order on a 31-item vector with a block returns self iterates over the items in order on a 32-item vector with a block returns self iterates over the items in order on a 33-item vector with a block returns self iterates over the items in order on a 1023-item vector with a block returns self iterates over the items in order on a 1024-item vector with a block returns self iterates over the items in order on a 1025-item vector with a block returns self iterates over the items in order on an empty vector doesn't yield anything Hamster::Vector #empty? on [] returns true on ["A"] returns false on ["A", "B", "C"] returns false .empty returns the canonical empty vector from a subclass returns an empty instance of the subclass calls overridden #initialize when creating empty Hash Hamster::Vector #eql returns false when comparing with an array with the same contents returns false when comparing with an arbitrary object returns false when comparing an empty vector with an empty array returns false when comparing with a subclass of Hamster::Vector #== returns true when comparing with an array with the same contents returns false when comparing with an arbitrary object returns true when comparing an empty vector with an empty array returns true when comparing with a subclass of Hamster::Vector works on larger vectors #eql? returns true for vectors [] and [] for vectors [] and [] returns false for vectors [] and [nil] for vectors [nil] and [] returns false for vectors ["A"] and [] for vectors [] and ["A"] returns true for vectors ["A"] and ["A"] for vectors ["A"] and ["A"] returns false for vectors ["A"] and ["B"] for vectors ["B"] and ["A"] returns false for vectors ["A", "B"] and ["A"] for vectors ["A"] and ["A", "B"] returns true for vectors ["A", "B", "C"] and ["A", "B", "C"] for vectors ["A", "B", "C"] and ["A", "B", "C"] returns false for vectors ["C", "A", "B"] and ["A", "B", "C"] for vectors ["A", "B", "C"] and ["C", "A", "B"] #== returns true for vectors [] and [] for vectors [] and [] returns false for vectors [] and [nil] for vectors [nil] and [] returns false for vectors ["A"] and [] for vectors [] and ["A"] returns true for vectors ["A"] and ["A"] for vectors ["A"] and ["A"] returns false for vectors ["A"] and ["B"] for vectors ["B"] and ["A"] returns false for vectors ["A", "B"] and ["A"] for vectors ["A"] and ["A", "B"] returns true for vectors ["A", "B", "C"] and ["A", "B", "C"] for vectors ["A", "B", "C"] and ["A", "B", "C"] returns false for vectors ["C", "A", "B"] and ["A", "B", "C"] for vectors ["A", "B", "C"] and ["C", "A", "B"] Hamster::Vector #fetch gives precedence to default block over default argument if passed both with no default provided when the index exists returns the value at the index when the key does not exist raises an IndexError with a default value when the index exists returns the value at the index when the index does not exist returns the default value with a default block when the index exists returns the value at the index when the index does not exist invokes the block with the missing index as parameter Hamster::Vector #fill can replace a range of items at the beginning of a vector can replace a range of items in the middle of a vector can replace a range of items at the end of a vector can replace all the items in a vector can fill past the end of the vector behaves like Array#fill, on a variety of inputs with 1 argument replaces all the items in the vector by default with 2 arguments replaces up to the end of the vector by default when index and length are 0 leaves the vector unmodified when expanding a vector past boundary where vector trie needs to deepen works the same on a 1000-item vector works the same on a 1023-item vector works the same on a 1024-item vector works the same on a 1025-item vector works the same on a 2000-item vector works the same Hamster::Vector #first on [] returns nil on ["A"] returns "A" on ["A", "B", "C"] returns "A" on 1..32 returns 1 Hamster::Vector #flat_map with an empty vector returns the flattened values as a Hamster::Vector returns a Hamster::Vector with a block that returns an empty vector returns the flattened values as a Hamster::Vector returns a Hamster::Vector with a vector of one item returns the flattened values as a Hamster::Vector returns a Hamster::Vector with a vector of multiple items returns the flattened values as a Hamster::Vector returns a Hamster::Vector Hamster::Vector #flatten recursively flattens nested vectors into containing vector flattens nested arrays as well leaves the original unmodified with an integral argument only flattens down to the specified depth with an argument of zero returns self on a subclass returns an instance of the subclass on a vector with no nested vectors returns an unchanged vector on a Vector larger than 32 items initialized with Vector.new returns an unchanged vector Hamster::Vector #get when empty always returns nil when not empty with a positive index within the absolute bounds of the vector returns the value at the specified index from the head outside the absolute bounds of the vector returns nil with a negative index within the absolute bounds of the vector returns the value at the specified index from the tail outside the absolute bounds of the vector returns nil on a 1-item vector works correctly, even after various addings and removings on a 10-item vector works correctly, even after various addings and removings on a 31-item vector works correctly, even after various addings and removings on a 32-item vector works correctly, even after various addings and removings on a 33-item vector works correctly, even after various addings and removings on a 1024-item vector works correctly, even after various addings and removings on a 1025-item vector works correctly, even after various addings and removings on a 2000-item vector works correctly, even after various addings and removings #at when empty always returns nil when not empty with a positive index within the absolute bounds of the vector returns the value at the specified index from the head outside the absolute bounds of the vector returns nil with a negative index within the absolute bounds of the vector returns the value at the specified index from the tail outside the absolute bounds of the vector returns nil on a 1-item vector works correctly, even after various addings and removings on a 10-item vector works correctly, even after various addings and removings on a 31-item vector works correctly, even after various addings and removings on a 32-item vector works correctly, even after various addings and removings on a 33-item vector works correctly, even after various addings and removings on a 1024-item vector works correctly, even after various addings and removings on a 1025-item vector works correctly, even after various addings and removings on a 2000-item vector works correctly, even after various addings and removings Hamster::Vector #group_by returns a hash without default proc with a block on [] returns [] on [1] returns [{true=>Hamster::Vector[1]}] on [1, 2, 3, 4] returns [{true=>Hamster::Vector[1, 3], false=>Hamster::Vector[2, 4]}] without a block on [] returns [] on [1] returns [{1=>Hamster::Vector[1]}] on [1, 2, 3, 4] returns [{1=>Hamster::Vector[1], 2=>Hamster::Vector[2], 3=>Hamster::Vector[3], 4=>Hamster::Vector[4]}] on an empty vector returns an empty hash from a subclass returns an Hash whose values are instances of the subclass Hamster::Vector #include? on [] returns false on [] returns false on ["A"] returns true on ["A"] returns false on ["A"] returns false on ["A", "B", nil] returns true on ["A", "B", nil] returns true on ["A", "B", nil] returns true on ["A", "B", nil] returns false on ["A", "B", false] returns true on [2] returns true on [2] returns true on [2.0] returns true on [2.0] returns true #member? on [] returns false on [] returns false on ["A"] returns true on ["A"] returns false on ["A"] returns false on ["A", "B", nil] returns true on ["A", "B", nil] returns true on ["A", "B", nil] returns true on ["A", "B", nil] returns false on ["A", "B", false] returns true on [2] returns true on [2] returns true on [2.0] returns true on [2.0] returns true Hamster::Vector #insert can add items at the beginning of a vector can add items in the middle of a vector can add items at the end of a vector can add items past the end of a vector accepts a negative index, which counts back from the end of the vector raises IndexError if a negative index is too great works when adding an item past boundary when vector trie needs to deepen works when adding to an empty Vector has the right size and contents after many insertions Hamster::Vector #inspect with an empty array returns its contents as a programmer-readable string returns a string which can be eval'd to get back an equivalent vector with a single item array returns its contents as a programmer-readable string returns a string which can be eval'd to get back an equivalent vector with a multi-item array returns its contents as a programmer-readable string returns a string which can be eval'd to get back an equivalent vector from a subclass returns its contents as a programmer-readable string returns a string which can be eval'd to get back an equivalent vector Hamster::Vector #join with a separator on [] preserves the original returns "" on ["A"] preserves the original returns "A" on ["A", "B", "C"] preserves the original returns "A|B|C" without a separator on [] preserves the original returns "" on ["A"] preserves the original returns "A" on ["A", "B", "C"] preserves the original returns "ABC" without a separator (with global default separator set) on ["A", "B", "C"] returns "A**B**C" Hamster::Vector #last with an empty vector returns the last item with a single item vector returns the last item with a multi-item vector returns the last item with a 31-item vector returns the last item with a 32-item vector returns the last item with a 33-item vector returns the last item with a 1023-item vector returns the last item with a 1024-item vector returns the last item with a 1025-item vector returns the last item Hamster::Vector #length with an empty vector returns the values with a single item vector returns the values with a multi-item vector returns the values with a 31-item vector returns the values with a 32-item vector returns the values with a 33-item vector returns the values with a 1023-item vector returns the values with a 1024-item vector returns the values with a 1025-item vector returns the values Hamster::Vector #<< with a empty array adding a single item preserves the original ltlts the item to the vector with a single-item array adding a different item preserves the original ltlts the item to the vector with a single-item array adding a duplicate item preserves the original ltlts the item to the vector with a 31-item vector adding a different item preserves the original ltlts the item to the vector with a 32-item vector adding a different item preserves the original ltlts the item to the vector with a 33-item vector adding a different item preserves the original ltlts the item to the vector with a 1023-item vector adding a different item preserves the original ltlts the item to the vector with a 1024-item vector adding a different item preserves the original ltlts the item to the vector with a 1025-item vector adding a different item preserves the original ltlts the item to the vector from a subclass returns an instance of the subclass Hamster::Vector #map when empty returns self when not empty with a block preserves the original values returns a new vector with the mapped values with no block returns an Enumerator from a subclass returns an instance of the subclass on a large vector works #collect when empty returns self when not empty with a block preserves the original values returns a new vector with the mapped values with no block returns an Enumerator from a subclass returns an instance of the subclass on a large vector works Hamster::Vector #marshal_dump/#marshal_load can survive dumping and loading into a new process is still possible to find items by index after loading Hamster::Vector #max with a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ichi" without a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "San" Hamster::Vector #min with a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ni" without a block on [] returns nil on ["A"] returns "A" on ["Ichi", "Ni", "San"] returns "Ichi" Hamster::Vector #* raises a TypeError if passed nil raises an ArgumentError if passed no arguments with a String argument acts just like #join with an Integer argument concatenates n copies of the array raises an ArgumentError if integer is negative works on large vectors with a subclass of Vector returns an instance of the subclass Hamster::Vector .new accepts a single enumerable argument and creates a new vector makes a defensive copy of a non-frozen mutable Array passed in is amenable to overriding of #initialize from a subclass returns a frozen instance of the subclass .[] accepts a variable number of items and creates a new vector Hamster::Vector #partition on [] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2, 3] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [1, 2, 3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [2, 3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [3, 4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator on [4] with a block preserves the original returns a frozen array with two items correctly identifies the matches correctly identifies the remainder without a block returns an Enumerator Hamster::Vector #permutation handles duplicate elements correctly leaves the original unmodified behaves like Array#permutation without a block or arguments returns an Enumerator of all permutations without a block, but with integral argument returns an Enumerator of all permutations of given length with a block returns self and no argument yields all permutations and an integral argument yields all permutations of the given length on an empty vector yields the empty permutation with an argument of zero yields the empty permutation with a length greater than the size of the vector yields no permutations Hamster::Vector #pop on [] preserves the original returns [] on ["A"] preserves the original returns [] on ["A", "B", "C"] preserves the original returns ["A", "B"] on 1..32 preserves the original returns 1..31 on 1..33 preserves the original returns 1..32 Hamster::Vector #product when passed no arguments multiplies all items in vector when passed one or more vectors when passed a block yields an array for each combination of items from the vectors returns self when not passed a block returns the cartesian product in an array when one of the arguments is empty returns an empty array when the receiver is empty returns an empty array when passed one or more Arrays also calculates the cartesian product correctly Hamster::Vector #put when empty WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/spec/lib/hamster/vector/put_spec.rb:12:in `block (4 levels) in '. raises an error for index -1 allows indexes 0 and 1 to be put when not empty with a block and a positive index within the absolute bounds of the vector passes the current value to the block replaces the value with the result of the block supports to_proc methods just past the end of the vector passes nil to the block and adds a new value further outside the bounds of the vector passes nil to the block, fills up missing nils, and adds a new value and a negative index within the absolute bounds of the vector passes the current value to the block replaces the value with the result of the block supports to_proc methods outside the absolute bounds of the vector WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/spec/lib/hamster/vector/put_spec.rb:76:in `block (7 levels) in '. raises an error with a value and a positive index within the absolute bounds of the vector preserves the original puts the new value at the specified index just past the end of the vector adds a new value outside the absolute bounds of the vector fills up with nils with a negative index preserves the original puts the new value at the specified index outside the absolute bounds of the vector WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/ruby-hamster-rs4TZB/ruby-hamster-3.0.0/spec/lib/hamster/vector/put_spec.rb:126:in `block (6 levels) in '. raises an error from a subclass returns an instance of the subclass on a 10-item vector works correctly on a 31-item vector works correctly on a 32-item vector works correctly on a 33-item vector works correctly on a 1000-item vector works correctly on a 1023-item vector works correctly on a 1024-item vector works correctly on a 1025-item vector works correctly on a 2000-item vector works correctly with an identical value to an existing item on a 1-item vector returns self on a 2-item vector returns self on a 5-item vector returns self on a 31-item vector returns self on a 32-item vector returns self on a 33-item vector returns self on a 100-item vector returns self on a 200-item vector returns self Hamster::Vector #reduce on [] with an initial value of 10 and a block returns 10 on [1] with an initial value of 10 and a block returns 9 on [1, 2, 3] with an initial value of 10 and a block returns 4 on [] with no initial value and a block returns nil on [1] with no initial value and a block returns 1 on [1, 2, 3] with no initial value and a block returns -4 with no block and a symbol argument uses the symbol as the name of a method to reduce with with no block and a string argument uses the string as the name of a method to reduce with #inject on [] with an initial value of 10 and a block returns 10 on [1] with an initial value of 10 and a block returns 9 on [1, 2, 3] with an initial value of 10 and a block returns 4 on [] with no initial value and a block returns nil on [1] with no initial value and a block returns 1 on [1, 2, 3] with no initial value and a block returns -4 with no block and a symbol argument uses the symbol as the name of a method to reduce with with no block and a string argument uses the string as the name of a method to reduce with Hamster::Vector #reject works with a variety of inputs on [] with a block returns [] without a block returns an Enumerator on ["A"] with a block returns ["A"] without a block returns an Enumerator on ["A", "B", "C"] with a block returns ["A", "B", "C"] without a block returns an Enumerator on ["A", "b", "C"] with a block returns ["A", "C"] without a block returns an Enumerator on ["a", "b", "c"] with a block returns [] without a block returns an Enumerator #delete_if works with a variety of inputs on [] with a block returns [] without a block returns an Enumerator on ["A"] with a block returns ["A"] without a block returns an Enumerator on ["A", "B", "C"] with a block returns ["A", "B", "C"] without a block returns an Enumerator on ["A", "b", "C"] with a block returns ["A", "C"] without a block returns an Enumerator on ["a", "b", "c"] with a block returns [] without a block returns an Enumerator Hamster::Vector #repeated_combination leaves the original unmodified behaves like Array#repeated_combination with no block returns an Enumerator with a block returns self with a negative argument yields nothing and returns self with a zero argument yields an empty array with a argument of 1 yields each item in the vector, as single-item vectors on an empty vector, with an argument greater than zero yields nothing with a positive argument, greater than 1 yields all combinations of the given size (where a single element can appear more than once in a row) Hamster::Vector #repeated_permutation handles duplicate elements correctly allows permutations larger than the number of elements leaves the original unmodified behaves like Array#repeated_permutation without a block and without argument returns an Enumerator of all repeated permutations with an integral argument returns an Enumerator of all repeated permutations of the given length with a block returns self on an empty vector yields the empty permutation with an argument of zero yields the empty permutation with no argument yields all repeated permutations with a positive integral argument yields all repeated permutations of the given length Hamster::Vector #reverse_each on a 2-item vector with a block (internal iteration) returns self yields all items in the opposite order as #each with no block returns an Enumerator on a 31-item vector with a block (internal iteration) returns self yields all items in the opposite order as #each with no block returns an Enumerator on a 32-item vector with a block (internal iteration) returns self yields all items in the opposite order as #each with no block returns an Enumerator on a 33-item vector with a block (internal iteration) returns self yields all items in the opposite order as #each with no block returns an Enumerator on a 1000-item vector with a block (internal iteration) returns self yields all items in the opposite order as #each with no block returns an Enumerator on a 1024-item vector with a block (internal iteration) returns self yields all items in the opposite order as #each with no block returns an Enumerator on a 1025-item vector with a block (internal iteration) returns self yields all items in the opposite order as #each with no block returns an Enumerator on a 2000-item vector with a block (internal iteration) returns self yields all items in the opposite order as #each with no block returns an Enumerator Hamster::Vector #reverse on [] returns [] on [1] returns [1] on [1, 2] returns [2, 1] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32] returns [32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33] returns [33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100] returns [100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] on [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024] returns [1024, 1023, 1022, 1021, 1020, 1019, 1018, 1017, 1016, 1015, 1014, 1013, 1012, 1011, 1010, 1009, 1008, 1007, 1006, 1005, 1004, 1003, 1002, 1001, 1000, 999, 998, 997, 996, 995, 994, 993, 992, 991, 990, 989, 988, 987, 986, 985, 984, 983, 982, 981, 980, 979, 978, 977, 976, 975, 974, 973, 972, 971, 970, 969, 968, 967, 966, 965, 964, 963, 962, 961, 960, 959, 958, 957, 956, 955, 954, 953, 952, 951, 950, 949, 948, 947, 946, 945, 944, 943, 942, 941, 940, 939, 938, 937, 936, 935, 934, 933, 932, 931, 930, 929, 928, 927, 926, 925, 924, 923, 922, 921, 920, 919, 918, 917, 916, 915, 914, 913, 912, 911, 910, 909, 908, 907, 906, 905, 904, 903, 902, 901, 900, 899, 898, 897, 896, 895, 894, 893, 892, 891, 890, 889, 888, 887, 886, 885, 884, 883, 882, 881, 880, 879, 878, 877, 876, 875, 874, 873, 872, 871, 870, 869, 868, 867, 866, 865, 864, 863, 862, 861, 860, 859, 858, 857, 856, 855, 854, 853, 852, 851, 850, 849, 848, 847, 846, 845, 844, 843, 842, 841, 840, 839, 838, 837, 836, 835, 834, 833, 832, 831, 830, 829, 828, 827, 826, 825, 824, 823, 822, 821, 820, 819, 818, 817, 816, 815, 814, 813, 812, 811, 810, 809, 808, 807, 806, 805, 804, 803, 802, 801, 800, 799, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 768, 767, 766, 765, 764, 763, 762, 761, 760, 759, 758, 757, 756, 755, 754, 753, 752, 751, 750, 749, 748, 747, 746, 745, 744, 743, 742, 741, 740, 739, 738, 737, 736, 735, 734, 733, 732, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, 693, 692, 691, 690, 689, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 670, 669, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, 654, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 637, 636, 635, 634, 633, 632, 631, 630, 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 526, 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, 487, 486, 485, 484, 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 470, 469, 468, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458, 457, 456, 455, 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, 412, 411, 410, 409, 408, 407, 406, 405, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 388, 387, 386, 385, 384, 383, 382, 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, 333, 332, 331, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312, 311, 310, 309, 308, 307, 306, 305, 304, 303, 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] Hamster::Vector #rindex when passed an object present in the vector returns the last index where the object is present when passed an object not present in the vector returns nil with a block returns the last index of an object which the predicate is true for without an argument OR block returns an Enumerator Hamster::Vector #rotate leaves the original unmodified when passed no argument returns a new vector with the first element moved to the end with an integral argument n returns a new vector with the first (n % size) elements moved to the end with a floating-point argument n coerces the argument to integer using to_int with a non-numeric argument raises a TypeError with an argument of zero returns self with an argument equal to the vector's size returns self on a 31-item vector behaves like Array#rotate on a 32-item vector behaves like Array#rotate on a 33-item vector behaves like Array#rotate on a 1000-item vector behaves like Array#rotate on a 1023-item vector behaves like Array#rotate on a 1024-item vector behaves like Array#rotate on a 1025-item vector behaves like Array#rotate from a subclass returns an instance of the subclass Hamster::Vector #sample returns a randomly chosen item Hamster::Vector #select works with a variety of inputs with a block preserves the original returns a vector with the matching values with no block returns an Enumerator when nothing matches preserves the original returns an empty vector on an empty vector returns self from a subclass returns an instance of the subclass #find_all works with a variety of inputs with a block preserves the original returns a vector with the matching values with no block returns an Enumerator when nothing matches preserves the original returns an empty vector on an empty vector returns self from a subclass returns an instance of the subclass Hamster::Vector #set without block replaces the element with block passes the existing element to the block and replaces the result Hamster::Vector #shift on [] preserves the original returns [] on ["A"] preserves the original returns [] on ["A", "B", "C"] preserves the original returns ["B", "C"] on 1..31 preserves the original returns 2..31 on 1..32 preserves the original returns 2..32 on 1..33 preserves the original returns 2..33 Hamster::Vector #shuffle returns the same values, in a usually different order leaves the original unchanged from a subclass returns an instance of the subclass on a 32-item vector works correctly on a 33-item vector works correctly on a 1023-item vector works correctly on a 1024-item vector works correctly on a 1025-item vector works correctly Hamster::Vector #slice when passed a positive integral index returns the element at that index leaves the original unchanged when passed a negative integral index returns the element which is number (index.abs) counting from the end of the vector when passed a positive integral index and count returns 'count' elements starting from 'index' leaves the original unchanged when passed a negative integral index and count returns 'count' elements, starting from index which is number 'index.abs' counting from the end of the array when passed a Range returns the elements whose indexes are within the given Range leaves the original unchanged when passed a subclass of Range works the same as with a Range on a subclass of Vector with index and count or a range, returns an instance of the subclass #[] when passed a positive integral index returns the element at that index leaves the original unchanged when passed a negative integral index returns the element which is number (index.abs) counting from the end of the vector when passed a positive integral index and count returns 'count' elements starting from 'index' leaves the original unchanged when passed a negative integral index and count returns 'count' elements, starting from index which is number 'index.abs' counting from the end of the array when passed a Range returns the elements whose indexes are within the given Range leaves the original unchanged when passed a subclass of Range works the same as with a Range on a subclass of Vector with index and count or a range, returns an instance of the subclass Hamster::Vector #sort on [] with a block preserves the original returns [] without a block preserves the original returns [] on ["A"] with a block preserves the original returns ["A"] without a block preserves the original returns ["A"] on ["Ichi", "Ni", "San"] with a block preserves the original returns ["Ni", "San", "Ichi"] without a block preserves the original returns ["Ichi", "Ni", "San"] on a 10-item vector behaves like Arraysort on a 31-item vector behaves like Arraysort on a 32-item vector behaves like Arraysort on a 33-item vector behaves like Arraysort on a 1023-item vector behaves like Arraysort on a 1024-item vector behaves like Arraysort on a 1025-item vector behaves like Arraysort #sort_by on [] with a block preserves the original returns [] without a block preserves the original returns [] on ["A"] with a block preserves the original returns ["A"] without a block preserves the original returns ["A"] on ["Ichi", "Ni", "San"] with a block preserves the original returns ["Ni", "San", "Ichi"] without a block preserves the original returns ["Ichi", "Ni", "San"] on a 10-item vector behaves like Arraysort_by on a 31-item vector behaves like Arraysort_by on a 32-item vector behaves like Arraysort_by on a 33-item vector behaves like Arraysort_by on a 1023-item vector behaves like Arraysort_by on a 1024-item vector behaves like Arraysort_by on a 1025-item vector behaves like Arraysort_by Hamster::Vector #sum on [] returns 0 on [2] returns 2 on [1, 3, 5, 7, 11] returns 27 Hamster::Vector #take 10 from [] preserves the original returns [] 10 from ["A"] preserves the original returns ["A"] 0 from ["A", "B", "C"] preserves the original returns [] 2 from ["A", "B", "C"] preserves the original returns ["A", "B"] 1 from 1..32 preserves the original returns [1] 32 from 1..33 preserves the original returns 1..32 40 from 1..100 preserves the original returns 1..40 when number of elements specified is identical to size returns self when number of elements specified is bigger than size returns self Hamster::Vector #take_while on [] with a block returns [] preserves the original without a block returns an Enumerator on ["A"] with a block returns ["A"] preserves the original without a block returns an Enumerator on ["A", "B", "C"] with a block returns ["A", "B"] preserves the original without a block returns an Enumerator Hamster::Vector #to_a with an empty vector returns the values with an single item vector returns the values with an multi-item vector returns the values with a 10-item vector returns the values with a 31-item vector returns the values with a 32-item vector returns the values with a 33-item vector returns the values with a 1000-item vector returns the values with a 1023-item vector returns the values with a 1024-item vector returns the values with a 1025-item vector returns the values Hamster::Vector #to_ary converts using block parameters converts using method arguments converts using splat Hamster::Vector #to_list on [] returns a list the returned list has the correct length contains all values on ["A"] returns a list the returned list has the correct length contains all values on ["A", "B", "C"] returns a list the returned list has the correct length contains all values Hamster::Vector #to_set on [] returns a set with the same values on ["A"] returns a set with the same values on ["A", "B", "C"] returns a set with the same values on 1..10 returns a set with the same values on 1..32 returns a set with the same values on 1..33 returns a set with the same values on 1..1000 returns a set with the same values Hamster::Vector #transpose takes a vector of vectors and transposes rows and columns raises an IndexError if the vectors are not of the same length also works on Vectors of Arrays on 10-item vectors behaves like Array#transpose on 31-item vectors behaves like Array#transpose on 32-item vectors behaves like Array#transpose on 33-item vectors behaves like Array#transpose on 1000-item vectors behaves like Array#transpose on 1023-item vectors behaves like Array#transpose on 1024-item vectors behaves like Array#transpose on 1025-item vectors behaves like Array#transpose on 2000-item vectors behaves like Array#transpose on a subclass of Vector returns instances of the subclass Hamster::Vector #uniq returns a vector with no duplicates leaves the original unmodified uses #eql? semantics also uses #hash when determining which values are duplicates keeps the first of each group of duplicate values when passed a block uses the return value of the block to determine which items are duplicate on a vector with no duplicates returns an unchanged vector if the vector has more than 32 elements and is initialized with Vector.new returns an unchanged vector on a 10-item vector behaves like Array#uniq on a 31-item vector behaves like Array#uniq on a 32-item vector behaves like Array#uniq on a 33-item vector behaves like Array#uniq on a 1000-item vector behaves like Array#uniq on a 1023-item vector behaves like Array#uniq on a 1024-item vector behaves like Array#uniq on a 1025-item vector behaves like Array#uniq on a 2000-item vector behaves like Array#uniq from a subclass returns an instance of the subclass Hamster::Vector #unshift on [] with "A" preserves the original returns ["A"] on ["A"] with "B" preserves the original returns ["B", "A"] on ["A"] with "A" preserves the original returns ["A", "A"] on ["A", "B", "C"] with "D" preserves the original returns ["D", "A", "B", "C"] on 1..31 with 0 preserves the original returns 0..31 on 1..32 with 0 preserves the original returns 0..32 on 1..33 with 0 preserves the original returns 0..33 Hamster::Vector #values_at accepts any number of indices, and returns a vector of items at those indices when passed invalid indices fills in with nils when passed no arguments returns an empty vector from a subclass returns an instance of the subclass Hamster::Vector #zip with a block yields arrays of one corresponding element from each input sequence fills in the missing values with nils returns nil can handle multiple inputs, of different classes without a block returns a vector of arrays (one corresponding element from each input sequence) on 10-item vectors behaves like Array#zip on 31-item vectors behaves like Array#zip on 32-item vectors behaves like Array#zip on 33-item vectors behaves like Array#zip on 1000-item vectors behaves like Array#zip on 1023-item vectors behaves like Array#zip on 1024-item vectors behaves like Array#zip on 1025-item vectors behaves like Array#zip from a subclass returns an instance of the subclass Hamster Hash can be loaded separately Set can be loaded separately Vector can be loaded separately List can be loaded separately SortedSet can be loaded separately Deque can be loaded separately Pending: (Failures listed here are expected and do not affect your suite's status) 1) Hamster::List doesn't give horrendously bad performance if thread realizing the list sleeps # Temporarily skipped with xit # ./spec/lib/hamster/list/multithreading_spec.rb:33 Finished in 32.34 seconds (files took 6.81 seconds to load) 4595 examples, 0 failures, 1 pending ┌──────────────────────────────────────────────────────────────────────────────┐ │ dh_ruby --install finished │ └──────────────────────────────────────────────────────────────────────────────┘ dh_installdocs -i -O--buildsystem=ruby dh_ruby_fixdocs -i -O--buildsystem=ruby dh_installchangelogs -i -O--buildsystem=ruby dh_perl -i -O--buildsystem=ruby dh_link -i -O--buildsystem=ruby dh_strip_nondeterminism -i -O--buildsystem=ruby dh_compress -X.rb -i -O--buildsystem=ruby dh_fixperms -i -O--buildsystem=ruby dh_installdeb -i -O--buildsystem=ruby dh_gencontrol -i -O--buildsystem=ruby dpkg-gencontrol: warning: Depends field of package ruby-hamster: unknown substitution variable ${shlibs:Depends} dh_md5sums -i -O--buildsystem=ruby dh_builddeb -i -O--buildsystem=ruby dpkg-deb: building package 'ruby-hamster' in '../ruby-hamster_3.0.0-2_all.deb'. dpkg-genbuildinfo --build=all dpkg-genchanges --build=all >../ruby-hamster_3.0.0-2_all.changes dpkg-genchanges: info: binary-only arch-indep upload (source code and arch-specific packages not included) dpkg-source --after-build ruby-hamster-3.0.0 dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/ruby-hamster-rs4TZB /tmp/ruby-hamster-3.0.0-2gmx7gywa I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.yluXHEvpGg... I: success in 314.0255 seconds md5: ruby-hamster_3.0.0-2_all.deb: OK sha1: ruby-hamster_3.0.0-2_all.deb: OK sha256: ruby-hamster_3.0.0-2_all.deb: OK Checksums: OK