コード例 #1
0
 public function test_ArrayImpl()
 {
     $expected = 110;
     $actual = a_::chain(a_::range(1, 11))->map(f::op('*', [2]))->sum();
     $this->assertEquals($expected, $actual);
 }