public function testMapCat() { $input = [[0, 1, 2], [3, 4, 5], [6]]; $expected = [0, 1, 2, 3, 4, 5, 6]; $xf = t::mapcat(t::identity()); $actual = t::into([], $xf, $input); $this->assertEquals($expected, $actual); }
public function testMapCat() { $input = [[0, 1, 2], [3, 4, 5], [6]]; $expected = [0, 1, 2, 3, 4, 5, 6]; $xf = t::mapcat(t::identity()); $actual = t::into([], $xf, $input); $this->assertEquals($expected, $actual); }