<?php Chain::add('intersect', function ($data, $other) { return array_intersect($data, Hooray::unwrap([$other])); });
function hooray() { return new Hooray(Hooray::unwrap(func_get_args())); }
function testUnwrapsHoorays() { $this->assertEquals([1], Hooray::unwrap([new Hooray([1])])); }