예제 #1
0
 public function testMapNative()
 {
     $strings = ["hello", "world", "!"];
     $ucStrings = ["HELLO", "WORLD"];
     $result = t::into([], t::comp(t::map('strtoupper'), t::take(2)), $strings);
     $this->assertEquals($ucStrings, $result);
 }