$a, 'b' => $b]); static::assertSame('a', Iter\first_key($iterable)); static::assertSame($a, Iter\first($iterable)); static::assertSame('b', Iter\last_key($iterable)); static::assertSame($b, Iter\last($iterable)); $result = Iter\flip($iterable); static::assertSame($a, Iter\first_key($result)); static::assertSame('a', Iter\first($result)); static::assertSame($b, Iter\last_key($result)); static::assertSame('b', Iter\last($result)); } }