예제 #1
0
 public function testFoldLeft()
 {
     $map = new Map(["a" => 1, "b" => 2, "c" => 3, "d" => 3]);
     $this->assertEquals("1233", $map->foldLeft(function ($v, $acc) {
         return (string) $acc . (string) $v;
     }));
 }