public function testMap()
{
$matrix = new Matrix([[1, 2], [3, 4]]);
$mapped = $matrix->map(function ($value, $row, $column) {
return $value + $row + $column;
});
static::assertEquals(1, $mapped->get(0, 0));
static::assertEquals(3, $mapped->get(0, 1));
static::assertEquals(4, $mapped->get(1, 0));
static::assertEquals(6, $mapped->get(1, 1));
}